public interface DeploymentManager
Modifier and Type | Method and Description |
---|---|
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
|
ProgressObject |
distribute(Target[] targets,
ModuleType type,
InputStream moduleArchive,
InputStream deploymentPlan)
The distribute method performs three tasks; it validates the deployment configuration
data, generates all container specific classes and interfaces, and moves the fully
baked archive to the designated deployment 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
|
Target[] getTargets() throws IllegalStateException
IllegalStateException
- when the manager is disconnectedTargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targetsTargetException
- an invalid targetIllegalStateException
- when the manager is disconnectedTargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targetsTargetException
- an invalid targetIllegalStateException
- when the manager is disconnectedTargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targets) throws TargetException, IllegalStateException
moduleType
- the module typetargets
- the targetsTargetException
- an invalid targetIllegalStateException
- when the manager is disconnectedDeploymentConfiguration createConfiguration(DeployableObject obj) throws InvalidModuleException
obj
- the deployable componentInvalidModuleException
- 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 configurationIllegalStateException
- when the manager is disconnectedProgressObject distribute(Target[] targets, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configurationIllegalStateException
- when the manager is disconnectedProgressObject distribute(Target[] targets, ModuleType type, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configurationIllegalStateException
- when the manager is disconnectedProgressObject start(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modulesIllegalStateException
- when the manager is disconnectedProgressObject stop(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modulesIllegalStateException
- when the manager is disconnectedProgressObject undeploy(TargetModuleID[] moduleIDList) throws IllegalStateException
moduleIDList
- the list of modulesIllegalStateException
- when the manager is disconnectedboolean isRedeploySupported()
ProgressObject redeploy(TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException
moduleIDList
- the list of modulesIllegalStateException
- when the manager is disconnectedUnsupportedOperationException
- when redeploy is not supportedProgressObject redeploy(TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException
moduleIDList
- the list of modulesIllegalStateException
- when the manager is disconnectedUnsupportedOperationException
- when redeploy is not supportedvoid release()
Locale getDefaultLocale()
Locale getCurrentLocale()
void setLocale(Locale locale) throws UnsupportedOperationException
locale
- the new localUnsupportedOperationException
- when the locale is not supportedLocale[] getSupportedLocales()
boolean isLocaleSupported(Locale locale)
locale
- the localeDConfigBeanVersionType getDConfigBeanVersion()
boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version)
version
- the versionvoid setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException
version
- the versionUnsupportedOperationException
- when the version is not supportedDConfigBeanVersionUnsupportedException
Copyright © 2018 JBoss by Red Hat. All rights reserved.