org.apache.geronimo.deployment.plugin.jmx
Class JMXDeploymentManager

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.jmx.JMXDeploymentManager
All Implemented Interfaces:
DeploymentManager
Direct Known Subclasses:
LocalDeploymentManager, RemoteDeploymentManager

public abstract class JMXDeploymentManager
extends Object
implements DeploymentManager


Field Summary
protected  CommandContext commandContext
           
protected  Kernel kernel
           
 
Constructor Summary
JMXDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
           
 
Method Summary
 DeploymentConfiguration createConfiguration(DeployableObject dObj)
           
protected  DistributeCommand createDistributeCommand(Target[] targetList, File moduleArchive, File deploymentPlan)
           
protected  DistributeCommand createDistributeCommand(Target[] targetList, ModuleType moduleType, InputStream moduleArchive, InputStream deploymentPlan)
           
protected  RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan)
           
protected  RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan)
           
 ProgressObject distribute(Target[] targetList, File moduleArchive, File deploymentPlan)
           
 ProgressObject distribute(Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan)
          Deprecated.  
 ProgressObject distribute(Target[] targetList, ModuleType moduleType, InputStream moduleArchive, InputStream deploymentPlan)
           
 TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targetList)
           
 Locale getCurrentLocale()
           
 DConfigBeanVersionType getDConfigBeanVersion()
           
 Locale getDefaultLocale()
           
 TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targetList)
           
 TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targetList)
           
 Locale[] getSupportedLocales()
           
 Target[] getTargets()
           
protected  void initialize(Kernel kernel)
           
 boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
           
 boolean isLocaleSupported(Locale locale)
           
 boolean isRedeploySupported()
           
 ProgressObject redeploy(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan)
           
 ProgressObject redeploy(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan)
           
 void release()
           
 void setAuthentication(String username, String password)
           
 void setDConfigBeanVersion(DConfigBeanVersionType version)
           
 void setInPlace(boolean inPlace)
           
 void setLocale(Locale locale)
           
 void setLogConfiguration(boolean shouldLog, boolean verboseStatus)
           
 ProgressObject start(TargetModuleID[] moduleIDList)
           
 ProgressObject stop(TargetModuleID[] moduleIDList)
           
 ProgressObject undeploy(TargetModuleID[] moduleIDList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

protected Kernel kernel

commandContext

protected CommandContext commandContext
Constructor Detail

JMXDeploymentManager

public JMXDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
Method Detail

initialize

protected void initialize(Kernel kernel)

setAuthentication

public void setAuthentication(String username,
                              String password)

release

public void release()
Specified by:
release in interface DeploymentManager

getTargets

public Target[] getTargets()
Specified by:
getTargets in interface DeploymentManager

getAvailableModules

public TargetModuleID[] getAvailableModules(ModuleType moduleType,
                                            Target[] targetList)
                                     throws TargetException
Specified by:
getAvailableModules in interface DeploymentManager
Throws:
TargetException

getNonRunningModules

public TargetModuleID[] getNonRunningModules(ModuleType moduleType,
                                             Target[] targetList)
                                      throws TargetException
Specified by:
getNonRunningModules in interface DeploymentManager
Throws:
TargetException

getRunningModules

public TargetModuleID[] getRunningModules(ModuleType moduleType,
                                          Target[] targetList)
                                   throws TargetException
Specified by:
getRunningModules in interface DeploymentManager
Throws:
TargetException

distribute

public ProgressObject distribute(Target[] targetList,
                                 File moduleArchive,
                                 File deploymentPlan)
Specified by:
distribute in interface DeploymentManager

distribute

public ProgressObject distribute(Target[] targetList,
                                 InputStream moduleArchive,
                                 InputStream deploymentPlan)
Deprecated. 

Specified by:
distribute in interface DeploymentManager

distribute

public ProgressObject distribute(Target[] targetList,
                                 ModuleType moduleType,
                                 InputStream moduleArchive,
                                 InputStream deploymentPlan)
                          throws IllegalStateException
Throws:
IllegalStateException

start

public ProgressObject start(TargetModuleID[] moduleIDList)
Specified by:
start in interface DeploymentManager

stop

public ProgressObject stop(TargetModuleID[] moduleIDList)
Specified by:
stop in interface DeploymentManager

undeploy

public ProgressObject undeploy(TargetModuleID[] moduleIDList)
Specified by:
undeploy in interface DeploymentManager

isRedeploySupported

public boolean isRedeploySupported()
Specified by:
isRedeploySupported in interface DeploymentManager

redeploy

public ProgressObject redeploy(TargetModuleID[] moduleIDList,
                               File moduleArchive,
                               File deploymentPlan)
Specified by:
redeploy in interface DeploymentManager

redeploy

public ProgressObject redeploy(TargetModuleID[] moduleIDList,
                               InputStream moduleArchive,
                               InputStream deploymentPlan)
Specified by:
redeploy in interface DeploymentManager

getSupportedLocales

public Locale[] getSupportedLocales()
Specified by:
getSupportedLocales in interface DeploymentManager

getCurrentLocale

public Locale getCurrentLocale()
Specified by:
getCurrentLocale in interface DeploymentManager

getDefaultLocale

public Locale getDefaultLocale()
Specified by:
getDefaultLocale in interface DeploymentManager

isLocaleSupported

public boolean isLocaleSupported(Locale locale)
Specified by:
isLocaleSupported in interface DeploymentManager

setLocale

public void setLocale(Locale locale)
Specified by:
setLocale in interface DeploymentManager

getDConfigBeanVersion

public DConfigBeanVersionType getDConfigBeanVersion()
Specified by:
getDConfigBeanVersion in interface DeploymentManager

isDConfigBeanVersionSupported

public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
Specified by:
isDConfigBeanVersionSupported in interface DeploymentManager

setDConfigBeanVersion

public void setDConfigBeanVersion(DConfigBeanVersionType version)
                           throws DConfigBeanVersionUnsupportedException
Specified by:
setDConfigBeanVersion in interface DeploymentManager
Throws:
DConfigBeanVersionUnsupportedException

createConfiguration

public DeploymentConfiguration createConfiguration(DeployableObject dObj)
                                            throws InvalidModuleException
Specified by:
createConfiguration in interface DeploymentManager
Throws:
InvalidModuleException

createDistributeCommand

protected DistributeCommand createDistributeCommand(Target[] targetList,
                                                    File moduleArchive,
                                                    File deploymentPlan)

createDistributeCommand

protected DistributeCommand createDistributeCommand(Target[] targetList,
                                                    ModuleType moduleType,
                                                    InputStream moduleArchive,
                                                    InputStream deploymentPlan)

createRedeployCommand

protected RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList,
                                                File moduleArchive,
                                                File deploymentPlan)

createRedeployCommand

protected RedeployCommand createRedeployCommand(TargetModuleID[] moduleIDList,
                                                InputStream moduleArchive,
                                                InputStream deploymentPlan)

setLogConfiguration

public void setLogConfiguration(boolean shouldLog,
                                boolean verboseStatus)

setInPlace

public void setInPlace(boolean inPlace)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.