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.DeploymentManager
IllegalStateException
- 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.DeploymentManager
moduleType
- 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.DeploymentManager
moduleType
- 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.DeploymentManager
moduleType
- 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.DeploymentManager
obj
- 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.DeploymentManager
targets
- 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.DeploymentManager
targets
- 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.DeploymentManager
targets
- 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.DeploymentManager
UnsupportedOperationException
IllegalStateException
public 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.DeploymentManager
UnsupportedOperationException
IllegalStateException
public javax.enterprise.deploy.spi.status.ProgressObject start(javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs)
start
in interface javax.enterprise.deploy.spi.DeploymentManager
targetModuleIDs
- 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.DeploymentManager
targetModuleIDs
- 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.DeploymentManager
targetModuleIDs
- the list of modulesIllegalStateException
- when the manager is disconnectedpublic boolean isRedeploySupported()
isRedeploySupported
in interface javax.enterprise.deploy.spi.DeploymentManager
public 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.DeploymentManager
public Locale getDefaultLocale()
getDefaultLocale
in interface javax.enterprise.deploy.spi.DeploymentManager
public Locale getCurrentLocale()
getCurrentLocale
in interface javax.enterprise.deploy.spi.DeploymentManager
public void setLocale(Locale locale)
setLocale
in interface javax.enterprise.deploy.spi.DeploymentManager
public boolean isLocaleSupported(Locale locale)
isLocaleSupported
in interface javax.enterprise.deploy.spi.DeploymentManager
public Locale[] getSupportedLocales()
getSupportedLocales
in interface javax.enterprise.deploy.spi.DeploymentManager
public javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
getDConfigBeanVersion
in interface javax.enterprise.deploy.spi.DeploymentManager
public void setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType) throws javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
setDConfigBeanVersion
in interface javax.enterprise.deploy.spi.DeploymentManager
javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
public boolean isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType dConfigBeanVersionType)
isDConfigBeanVersionSupported
in interface javax.enterprise.deploy.spi.DeploymentManager
public 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 © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.