org.apache.geronimo.deployment.plugin
Class DisconnectedDeploymentManager

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.DisconnectedDeploymentManager
All Implemented Interfaces:
DeploymentManager

public class DisconnectedDeploymentManager
extends Object
implements DeploymentManager

Implementation of a disconnected JSR88 DeploymentManager.


Constructor Summary
DisconnectedDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
           
 
Method Summary
 DeploymentConfiguration createConfiguration(DeployableObject dObj)
           
 ProgressObject distribute(Target[] targets, File file, File file1)
           
 ProgressObject distribute(Target[] targets, InputStream inputStream, InputStream inputStream1)
          Deprecated.  
 ProgressObject distribute(Target[] targets, ModuleType moduleType, InputStream inputStream, InputStream inputStream1)
           
 TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targets)
           
 Locale getCurrentLocale()
           
 DConfigBeanVersionType getDConfigBeanVersion()
           
 Locale getDefaultLocale()
           
 TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targets)
           
 TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targets)
           
 Locale[] getSupportedLocales()
           
 Target[] getTargets()
           
 boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
           
 boolean isLocaleSupported(Locale locale)
           
 boolean isRedeploySupported()
           
 ProgressObject redeploy(TargetModuleID[] targetModuleIDs, File file, File file1)
           
 ProgressObject redeploy(TargetModuleID[] targetModuleIDs, InputStream inputStream, InputStream inputStream1)
           
 void release()
           
 void setDConfigBeanVersion(DConfigBeanVersionType version)
           
 void setLocale(Locale locale)
           
 ProgressObject start(TargetModuleID[] targetModuleIDs)
           
 ProgressObject stop(TargetModuleID[] targetModuleIDs)
           
 ProgressObject undeploy(TargetModuleID[] targetModuleIDs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisconnectedDeploymentManager

public DisconnectedDeploymentManager(Collection<ModuleConfigurer> moduleConfigurers)
Method Detail

createConfiguration

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

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

getTargets

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

getRunningModules

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

getNonRunningModules

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

getAvailableModules

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

distribute

public ProgressObject distribute(Target[] targets,
                                 File file,
                                 File file1)
                          throws IllegalStateException
Specified by:
distribute in interface DeploymentManager
Throws:
IllegalStateException

distribute

public ProgressObject distribute(Target[] targets,
                                 InputStream inputStream,
                                 InputStream inputStream1)
                          throws IllegalStateException
Deprecated. 

Specified by:
distribute in interface DeploymentManager
Throws:
IllegalStateException

distribute

public ProgressObject distribute(Target[] targets,
                                 ModuleType moduleType,
                                 InputStream inputStream,
                                 InputStream inputStream1)
                          throws IllegalStateException
Specified by:
distribute in interface DeploymentManager
Throws:
IllegalStateException

start

public ProgressObject start(TargetModuleID[] targetModuleIDs)
                     throws IllegalStateException
Specified by:
start in interface DeploymentManager
Throws:
IllegalStateException

stop

public ProgressObject stop(TargetModuleID[] targetModuleIDs)
                    throws IllegalStateException
Specified by:
stop in interface DeploymentManager
Throws:
IllegalStateException

undeploy

public ProgressObject undeploy(TargetModuleID[] targetModuleIDs)
                        throws IllegalStateException
Specified by:
undeploy in interface DeploymentManager
Throws:
IllegalStateException

isRedeploySupported

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

redeploy

public ProgressObject redeploy(TargetModuleID[] targetModuleIDs,
                               File file,
                               File file1)
                        throws UnsupportedOperationException,
                               IllegalStateException
Specified by:
redeploy in interface DeploymentManager
Throws:
UnsupportedOperationException
IllegalStateException

redeploy

public ProgressObject redeploy(TargetModuleID[] targetModuleIDs,
                               InputStream inputStream,
                               InputStream inputStream1)
                        throws UnsupportedOperationException,
                               IllegalStateException
Specified by:
redeploy in interface DeploymentManager
Throws:
UnsupportedOperationException
IllegalStateException

release

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.