|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentManager
The DeploymentManager object provides the core set of functions a J2EE platform must provide for J2EE application deployment. It provides server related information, such as, a list of deployment targets, and vendor unique runtime configuration information.
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 |
---|
Target[] getTargets() throws IllegalStateException
IllegalStateException
- when the manager is disconnectedTargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedTargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedTargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targets
TargetException
- an invalid target
IllegalStateException
- when the manager is disconnectedDeploymentConfiguration createConfiguration(DeployableObject obj) throws InvalidModuleException
obj
- the deployable component
InvalidModuleException
- when the module does not exist or is not supportedProgressObject distribute(Target[] targets, File moduleArchive, File deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
IllegalStateException
- when the manager is disconnectedProgressObject distribute(Target[] targets, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
IllegalStateException
- when the manager is disconnectedProgressObject start(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedProgressObject stop(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedProgressObject undeploy(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modules
IllegalStateException
- when the manager is disconnectedboolean isRedeploySupported()
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 supportedProgressObject 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 supportedvoid release()
Locale getDefaultLocale()
Locale getCurrentLocale()
void setLocale(Locale locale) throws UnsupportedOperationException
locale
- the new local
UnsupportedOperationException
- when the locale is not supportedLocale[] getSupportedLocales()
boolean isLocaleSupported(Locale locale)
locale
- the locale
DConfigBeanVersionType getDConfigBeanVersion()
boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
version
- the version
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 |