public class DeploymentManagerImpl extends Object implements javax.enterprise.deploy.spi.DeploymentManager
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPLOYER_URI
The URI deployment factory recognizes: http://org.jboss.as.ee.deployment/jsr88
|
| Constructor and Description |
|---|
DeploymentManagerImpl(URI deployURI,
boolean isConnected)
Create a deployment manager for the given URL and connected mode.
|
DeploymentManagerImpl(URI deployURI,
boolean isConnected,
String username,
String password)
Create a deployment manager for the given URL and connected mode, username and password.
|
| Modifier and Type | Method and Description |
|---|---|
javax.enterprise.deploy.spi.DeploymentConfiguration |
createConfiguration(javax.enterprise.deploy.model.DeployableObject obj)
Retrieve server specific configuration for a component
|
javax.enterprise.deploy.spi.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targets,
File moduleArchive,
File deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets
|
javax.enterprise.deploy.spi.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targets,
InputStream moduleArchive,
InputStream deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets
|
javax.enterprise.deploy.spi.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targets,
javax.enterprise.deploy.shared.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.
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
Retrieve the list of all J2EE application modules running or not running on the identified targets.
|
Locale |
getCurrentLocale()
Currently we only support the default locale
|
javax.enterprise.deploy.shared.DConfigBeanVersionType |
getDConfigBeanVersion()
Get the J2EE platform version
|
Locale |
getDefaultLocale()
Get the default locale
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
Get the non running modules
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
Get the running modules
|
Locale[] |
getSupportedLocales()
Currently we only support the default locale
|
javax.enterprise.deploy.spi.Target[] |
getTargets()
Get the available targets.
|
boolean |
isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType) |
boolean |
isDConfigBeanVersionTypeSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
Test whether the version is supported
|
boolean |
isLocaleSupported(Locale locale)
Currently we only support the default locale
|
boolean |
isRedeploySupported()
Is redeploy supported
|
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
Redeploys the modules
|
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs,
File file,
File file1) |
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs,
InputStream inputStream,
InputStream inputStream1) |
void |
release()
The release method is the mechanism by which the tool signals to the DeploymentManager that the tool does not need it to
continue running connected to the platform.
|
void |
setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType) |
void |
setDConfigBeanVersionType(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
Set the J2EE version
|
void |
setLocale(Locale locale)
Currently we only support the default locale
|
javax.enterprise.deploy.spi.status.ProgressObject |
start(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
Start the modules
|
javax.enterprise.deploy.spi.status.ProgressObject |
stop(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
Stop the modules
|
javax.enterprise.deploy.spi.status.ProgressObject |
undeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
Removes the modules
|
public static final String DEPLOYER_URI
public DeploymentManagerImpl(URI deployURI, boolean isConnected)
deployURI - isConnected - public javax.enterprise.deploy.spi.Target[] getTargets()
getTargets in interface javax.enterprise.deploy.spi.DeploymentManagerIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.TargetModuleID[] getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
throws javax.enterprise.deploy.spi.exceptions.TargetException
getRunningModules in interface javax.enterprise.deploy.spi.DeploymentManagermoduleType - the module typetargets - the targetsjavax.enterprise.deploy.spi.exceptions.TargetException - an invalid targetIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.TargetModuleID[] getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
throws javax.enterprise.deploy.spi.exceptions.TargetException
getNonRunningModules in interface javax.enterprise.deploy.spi.DeploymentManagermoduleType - the module typetargets - the targetsjavax.enterprise.deploy.spi.exceptions.TargetException - an invalid targetIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.TargetModuleID[] getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targets)
throws javax.enterprise.deploy.spi.exceptions.TargetException
getAvailableModules in interface javax.enterprise.deploy.spi.DeploymentManagermoduleType - the module typetargets - the targetsjavax.enterprise.deploy.spi.exceptions.TargetException - an invalid targetIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.DeploymentConfiguration createConfiguration(javax.enterprise.deploy.model.DeployableObject obj)
throws javax.enterprise.deploy.spi.exceptions.InvalidModuleException
createConfiguration in interface javax.enterprise.deploy.spi.DeploymentManagerobj - the deployable componentjavax.enterprise.deploy.spi.exceptions.InvalidModuleException - when the module does not exist or is not supportedpublic javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targets,
File moduleArchive,
File deploymentPlan)
distribute in interface javax.enterprise.deploy.spi.DeploymentManagertargets - the targetsmoduleArchive - the module archivedeploymentPlan - the runtime configurationIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targets,
InputStream moduleArchive,
InputStream deploymentPlan)
distribute in interface javax.enterprise.deploy.spi.DeploymentManagertargets - the targetsmoduleArchive - the module archivedeploymentPlan - the runtime configurationIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targets,
javax.enterprise.deploy.shared.ModuleType type,
InputStream moduleArchive,
InputStream deploymentPlan)
throws IllegalStateException
distribute in interface javax.enterprise.deploy.spi.DeploymentManagertargets - the targetsmoduleArchive - the module archivedeploymentPlan - the runtime configurationIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs,
File file,
File file1)
throws UnsupportedOperationException,
IllegalStateException
redeploy in interface javax.enterprise.deploy.spi.DeploymentManagerUnsupportedOperationExceptionIllegalStateExceptionpublic javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs,
InputStream inputStream,
InputStream inputStream1)
throws UnsupportedOperationException,
IllegalStateException
redeploy in interface javax.enterprise.deploy.spi.DeploymentManagerUnsupportedOperationExceptionIllegalStateExceptionpublic javax.enterprise.deploy.spi.status.ProgressObject start(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
start in interface javax.enterprise.deploy.spi.DeploymentManagertargetModuleIDs - the list of modulesIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.status.ProgressObject stop(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
stop in interface javax.enterprise.deploy.spi.DeploymentManagertargetModuleIDs - the list of modulesIllegalStateException - when the manager is disconnectedpublic javax.enterprise.deploy.spi.status.ProgressObject undeploy(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
undeploy in interface javax.enterprise.deploy.spi.DeploymentManagertargetModuleIDs - the list of modulesIllegalStateException - when the manager is disconnectedpublic boolean isRedeploySupported()
isRedeploySupported in interface javax.enterprise.deploy.spi.DeploymentManagerpublic javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
moduleIDList - the list of modulesIllegalStateException - when the manager is disconnectedUnsupportedOperationException - when redeploy is not supportedpublic void release()
release in interface javax.enterprise.deploy.spi.DeploymentManagerpublic Locale getDefaultLocale()
getDefaultLocale in interface javax.enterprise.deploy.spi.DeploymentManagerpublic Locale getCurrentLocale()
getCurrentLocale in interface javax.enterprise.deploy.spi.DeploymentManagerpublic void setLocale(Locale locale)
setLocale in interface javax.enterprise.deploy.spi.DeploymentManagerpublic boolean isLocaleSupported(Locale locale)
isLocaleSupported in interface javax.enterprise.deploy.spi.DeploymentManagerpublic Locale[] getSupportedLocales()
getSupportedLocales in interface javax.enterprise.deploy.spi.DeploymentManagerpublic javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
getDConfigBeanVersion in interface javax.enterprise.deploy.spi.DeploymentManagerpublic void setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType)
throws javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
setDConfigBeanVersion in interface javax.enterprise.deploy.spi.DeploymentManagerjavax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedExceptionpublic boolean isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType)
isDConfigBeanVersionSupported in interface javax.enterprise.deploy.spi.DeploymentManagerpublic boolean isDConfigBeanVersionTypeSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
version - the versionpublic void setDConfigBeanVersionType(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
version - the versionUnsupportedOperationException - when the version is not supportedCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.