com.caucho.j2ee.deployclient
Class DeploymentManagerImpl

java.lang.Object
  extended by com.caucho.j2ee.deployclient.DeploymentManagerImpl

public class DeploymentManagerImpl
extends java.lang.Object

Manager for the deployments.


Method Summary
 DeploymentConfiguration createConfiguration(DeployableObject dObj)
          Returns a configuration for the deployable object.
 ProgressObject distribute(Target[] targetList, java.io.File archive, java.io.File deploymentPlan)
          Deploys the object.
 ProgressObject distribute(Target[] targetList, java.io.InputStream archive, java.io.InputStream deploymentPlan)
          Deploys the object.
 ProgressObject distribute(Target[] arg0, ModuleType arg1, java.io.InputStream arg2, java.io.InputStream arg3)
           
 ProgressObject distributeImpl(Target[] targetList, java.io.File archive, java.io.InputStream archiveStream, java.io.File deploymentPlan, java.io.InputStream deploymentPlanStream)
          Deploys the object.
 TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targetList)
          Returns all available modules.
 java.util.Locale getCurrentLocale()
          Returns the current locale.
 DConfigBeanVersionType getDConfigBeanVersion()
          Returns the bean's J2EE version.
 java.util.Locale getDefaultLocale()
          Returns the default locale.
 TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targetList)
          Returns the current non-running modules.
 TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targetList)
          Returns the current running modules.
 java.util.Locale[] getSupportedLocales()
          Returns the supported locales.
 Target[] getTargets()
          Returns the targets supported by the manager.
 boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
          Returns true if the given version is supported.
 boolean isLocaleSupported(java.util.Locale locale)
          Returns true if the locale is supported.
 boolean isRedeploySupported()
          Returns true if the redeploy is supported.
 ProgressObject redeploy(TargetModuleID[] targetList, java.io.File archive, java.io.File deploymentPlan)
          Redeploys the object.
 ProgressObject redeploy(TargetModuleID[] targetList, java.io.InputStream archive, java.io.InputStream deploymentPlan)
          Redeploys the object.
 void release()
          Frees any resources.
 void setDConfigBeanVersion(DConfigBeanVersionType arg0)
           
 void setDConfigBeanVersionSupported(DConfigBeanVersionType version)
          Sets true if the given version is supported.
 void setLocale(java.util.Locale locale)
          Sets the default locale.
 ProgressObject start(TargetModuleID[] moduleIDList)
          Starts the modules.
 ProgressObject stop(TargetModuleID[] moduleIDList)
          Stops the modules.
 java.lang.String toString()
          Return the debug view of the manager.
 ProgressObject undeploy(TargetModuleID[] moduleIDList)
          Undeploys the modules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTargets

public Target[] getTargets()
                    throws java.lang.IllegalStateException
Returns the targets supported by the manager.

Throws:
java.lang.IllegalStateException

getRunningModules

public TargetModuleID[] getRunningModules(ModuleType moduleType,
                                          Target[] targetList)
                                   throws TargetException,
                                          java.lang.IllegalStateException
Returns the current running modules.

Throws:
TargetException
java.lang.IllegalStateException

getNonRunningModules

public TargetModuleID[] getNonRunningModules(ModuleType moduleType,
                                             Target[] targetList)
                                      throws TargetException,
                                             java.lang.IllegalStateException
Returns the current non-running modules.

Throws:
TargetException
java.lang.IllegalStateException

getAvailableModules

public TargetModuleID[] getAvailableModules(ModuleType moduleType,
                                            Target[] targetList)
                                     throws TargetException,
                                            java.lang.IllegalStateException
Returns all available modules.

Throws:
TargetException
java.lang.IllegalStateException

createConfiguration

public DeploymentConfiguration createConfiguration(DeployableObject dObj)
                                            throws InvalidModuleException
Returns a configuration for the deployable object.

Throws:
InvalidModuleException

distribute

public ProgressObject distribute(Target[] targetList,
                                 java.io.File archive,
                                 java.io.File deploymentPlan)
                          throws java.lang.IllegalStateException
Deploys the object.

Throws:
java.lang.IllegalStateException

distribute

public ProgressObject distribute(Target[] targetList,
                                 java.io.InputStream archive,
                                 java.io.InputStream deploymentPlan)
                          throws java.lang.IllegalStateException
Deploys the object.

Throws:
java.lang.IllegalStateException

distributeImpl

public ProgressObject distributeImpl(Target[] targetList,
                                     java.io.File archive,
                                     java.io.InputStream archiveStream,
                                     java.io.File deploymentPlan,
                                     java.io.InputStream deploymentPlanStream)
                              throws java.lang.IllegalStateException
Deploys the object.

Throws:
java.lang.IllegalStateException

start

public ProgressObject start(TargetModuleID[] moduleIDList)
                     throws java.lang.IllegalStateException
Starts the modules.

Throws:
java.lang.IllegalStateException

stop

public ProgressObject stop(TargetModuleID[] moduleIDList)
                    throws java.lang.IllegalStateException
Stops the modules.

Throws:
java.lang.IllegalStateException

undeploy

public ProgressObject undeploy(TargetModuleID[] moduleIDList)
                        throws java.lang.IllegalStateException
Undeploys the modules.

Throws:
java.lang.IllegalStateException

isRedeploySupported

public boolean isRedeploySupported()
Returns true if the redeploy is supported.


redeploy

public ProgressObject redeploy(TargetModuleID[] targetList,
                               java.io.File archive,
                               java.io.File deploymentPlan)
                        throws java.lang.IllegalStateException
Redeploys the object.

Throws:
java.lang.IllegalStateException

redeploy

public ProgressObject redeploy(TargetModuleID[] targetList,
                               java.io.InputStream archive,
                               java.io.InputStream deploymentPlan)
                        throws java.lang.IllegalStateException
Redeploys the object.

Throws:
java.lang.IllegalStateException

release

public void release()
Frees any resources.


getDefaultLocale

public java.util.Locale getDefaultLocale()
Returns the default locale.


getCurrentLocale

public java.util.Locale getCurrentLocale()
Returns the current locale.


setLocale

public void setLocale(java.util.Locale locale)
Sets the default locale.


getSupportedLocales

public java.util.Locale[] getSupportedLocales()
Returns the supported locales.


isLocaleSupported

public boolean isLocaleSupported(java.util.Locale locale)
Returns true if the locale is supported.


getDConfigBeanVersion

public DConfigBeanVersionType getDConfigBeanVersion()
Returns the bean's J2EE version.


isDConfigBeanVersionSupported

public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
Returns true if the given version is supported.


setDConfigBeanVersionSupported

public void setDConfigBeanVersionSupported(DConfigBeanVersionType version)
                                    throws DConfigBeanVersionUnsupportedException
Sets true if the given version is supported.

Throws:
DConfigBeanVersionUnsupportedException

toString

public java.lang.String toString()
Return the debug view of the manager.

Overrides:
toString in class java.lang.Object

distribute

public ProgressObject distribute(Target[] arg0,
                                 ModuleType arg1,
                                 java.io.InputStream arg2,
                                 java.io.InputStream arg3)
                          throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

setDConfigBeanVersion

public void setDConfigBeanVersion(DConfigBeanVersionType arg0)
                           throws DConfigBeanVersionUnsupportedException
Throws:
DConfigBeanVersionUnsupportedException