|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The core object for deploying modules to a j2ee environment
Method Summary | |
DeploymentConfiguration |
createConfiguration(DeployableObject obj)
Retrieve server specific configuration for a component |
ProgressObject |
distribute(Target[] targets,
File moduleArchive,
File deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets |
ProgressObject |
distribute(Target[] targets,
InputStream moduleArchive,
InputStream deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets |
TargetModuleID[] |
getAvailableModules(ModuleType moduleType,
Target[] targets)
Get the available modules both running and non running |
Locale |
getCurrentLocale()
Get the current local |
DConfigBeanVersionType |
getDConfigBeanVersion()
Get the J2EE platform version |
Locale |
getDefaultLocale()
Get the default locale |
TargetModuleID[] |
getNonRunningModules(ModuleType moduleType,
Target[] targets)
Get the non running modules |
TargetModuleID[] |
getRunningModules(ModuleType moduleType,
Target[] targets)
Get the running modules |
Locale[] |
getSupportedLocales()
Get the supported locales |
Target[] |
getTargets()
Get the available targets |
boolean |
isDConfigBeanVersionSupported(DConfigBeanVersionType version)
Test whether the version is supported |
boolean |
isLocaleSupported(Locale locale)
Is the locale supported |
boolean |
isRedeploySupported()
Is redeploy supported |
ProgressObject |
redeploy(TargetModuleID[] moduleIDList,
File moduleArchive,
File deploymentPlan)
Redeploys the modules |
ProgressObject |
redeploy(TargetModuleID[] moduleIDList,
InputStream moduleArchive,
InputStream deploymentPlan)
Redeploys the modules |
void |
release()
Release the deployment manager |
void |
setDConfigBeanVersion(DConfigBeanVersionType version)
Set the J2EE version |
void |
setLocale(Locale locale)
Set the locale |
ProgressObject |
start(TargetModuleID[] moduleIDList)
Start the modules |
ProgressObject |
stop(TargetModuleID[] moduleIDList)
Stop the modules |
ProgressObject |
undeploy(TargetModuleID[] moduleIDList)
Removes the modules |
Method Detail |
public Target[] getTargets() throws IllegalStateException
IllegalStateException
- when the manager is disconnectedpublic TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedpublic TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedpublic TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedpublic DeploymentConfiguration createConfiguration(DeployableObject obj) throws InvalidModuleException
obj
- the deployable component
InvalidModuleException
- when the module does not exist or is not supportedpublic ProgressObject distribute(Target[] targets, File moduleArchive, File deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
IllegalStateException
- when the manager is disconnectedpublic ProgressObject distribute(Target[] targets, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
IllegalStateException
- when the manager is disconnectedpublic ProgressObject start(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedpublic ProgressObject stop(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedpublic ProgressObject undeploy(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedpublic boolean isRedeploySupported()
public ProgressObject redeploy(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnected
UnsupportedOperationException
- when redeploy is not supportedpublic ProgressObject redeploy(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnected
UnsupportedOperationException
- when redeploy is not supportedpublic void release()
public Locale getDefaultLocale()
public Locale getCurrentLocale()
public void setLocale(Locale locale) throws UnsupportedOperationException
locale
- the new local
UnsupportedOperationException
- when the locale is not supportedpublic Locale[] getSupportedLocales()
public boolean isLocaleSupported(Locale locale)
locale
- the locale
public DConfigBeanVersionType getDConfigBeanVersion()
public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
version
- the version
public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException
version
- the version
UnsupportedOperationException
- when the version is not supported
DConfigBeanVersionUnsupportedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |