|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployment.spi.DeploymentManagerImpl
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.
Field Summary | |
static java.lang.String |
DEPLOYER_SCHEME
The URI scheme this deployment factory recoginzes: jboss-local-deployer |
Constructor Summary | |
DeploymentManagerImpl(java.net.URI deployURI,
boolean isConnected)
Create a deployment manager for the given URL and connected mode. |
|
DeploymentManagerImpl(java.net.URI deployURI,
boolean isConnected,
java.lang.String username,
java.lang.String password)
Create a deployment manager for the given URL and connected mode, username and password. |
Method Summary | |
DeploymentConfiguration (src) |
createConfiguration(DeployableObject (src) obj)
Retrieve server specific configuration for a component |
ProgressObject (src) |
distribute(Target (src) [] targets,
java.io.File moduleArchive,
java.io.File deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets |
ProgressObject (src) |
distribute(Target (src) [] targets,
java.io.InputStream moduleArchive,
java.io.InputStream deploymentPlan)
Validates the configuration, generates all container specific classes and moves the archive to the targets |
TargetModuleID (src) [] |
getAvailableModules(ModuleType (src) moduleType,
Target (src) [] targets)
Retrieve the list of all J2EE application modules running or not running on the identified targets. |
java.util.Locale |
getCurrentLocale()
Currently we only support the default locale |
DConfigBeanVersionType (src) |
getDConfigBeanVersion()
Get the J2EE platform version |
java.util.Locale |
getDefaultLocale()
Get the default locale |
TargetModuleID (src) [] |
getNonRunningModules(ModuleType (src) moduleType,
Target (src) [] targets)
Get the non running modules |
TargetModuleID (src) [] |
getRunningModules(ModuleType (src) moduleType,
Target (src) [] targets)
Get the running modules |
java.util.Locale[] |
getSupportedLocales()
Currently we only support the default locale |
Target (src) [] |
getTargets()
Get the available targets. |
boolean |
isDConfigBeanVersionSupported(DConfigBeanVersionType (src) dConfigBeanVersionType)
Test whether the version is supported |
boolean |
isDConfigBeanVersionTypeSupported(DConfigBeanVersionType (src) version)
Test whether the version is supported |
boolean |
isLocaleSupported(java.util.Locale locale)
Currently we only support the default locale |
boolean |
isRedeploySupported()
Is redeploy supported |
ProgressObject (src) |
redeploy(TargetModuleID (src) [] moduleIDList)
Redeploys the modules |
ProgressObject (src) |
redeploy(TargetModuleID (src) [] targetModuleIDs,
java.io.File file,
java.io.File file1)
Redeploys the modules |
ProgressObject (src) |
redeploy(TargetModuleID (src) [] targetModuleIDs,
java.io.InputStream inputStream,
java.io.InputStream inputStream1)
Redeploys the modules |
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(DConfigBeanVersionType (src) dConfigBeanVersionType)
Set the J2EE version |
void |
setDConfigBeanVersionType(DConfigBeanVersionType (src) version)
Set the J2EE version |
void |
setLocale(java.util.Locale locale)
Currently we only support the default locale |
ProgressObject (src) |
start(TargetModuleID (src) [] targetModuleIDs)
Start the modules |
ProgressObject (src) |
stop(TargetModuleID (src) [] targetModuleIDs)
Stop the modules |
ProgressObject (src) |
undeploy(TargetModuleID (src) [] targetModuleIDs)
Removes the modules |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEPLOYER_SCHEME
Constructor Detail |
public DeploymentManagerImpl(java.net.URI deployURI, boolean isConnected)
deployURI
- isConnected
- public DeploymentManagerImpl(java.net.URI deployURI, boolean isConnected, java.lang.String username, java.lang.String password)
deployURI
- isConnected
- username
- password
- Method Detail |
public Target (src) [] getTargets()
getTargets
in interface DeploymentManager (src)
java.lang.IllegalStateException
- when the manager is disconnectedpublic TargetModuleID (src) [] getRunningModules(ModuleType (src) moduleType, Target (src) [] targets) throws TargetException (src)
getRunningModules
in interface DeploymentManager (src)
moduleType
- the module typetargets
- the targets
TargetException (src)
- an invalid target
java.lang.IllegalStateException
- when the manager is disconnectedpublic TargetModuleID (src) [] getNonRunningModules(ModuleType (src) moduleType, Target (src) [] targets) throws TargetException (src)
getNonRunningModules
in interface DeploymentManager (src)
moduleType
- the module typetargets
- the targets
TargetException (src)
- an invalid target
java.lang.IllegalStateException
- when the manager is disconnectedpublic TargetModuleID (src) [] getAvailableModules(ModuleType (src) moduleType, Target (src) [] targets) throws TargetException (src)
getAvailableModules
in interface DeploymentManager (src)
moduleType
- the module typetargets
- the targets
TargetException (src)
- an invalid target
java.lang.IllegalStateException
- when the manager is disconnectedpublic DeploymentConfiguration (src) createConfiguration(DeployableObject (src) obj) throws InvalidModuleException (src)
createConfiguration
in interface DeploymentManager (src)
obj
- the deployable component
InvalidModuleException (src)
- when the module does not exist or is not supportedpublic ProgressObject (src) distribute(Target (src) [] targets, java.io.File moduleArchive, java.io.File deploymentPlan)
distribute
in interface DeploymentManager (src)
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
java.lang.IllegalStateException
- when the manager is disconnectedpublic ProgressObject (src) distribute(Target (src) [] targets, java.io.InputStream moduleArchive, java.io.InputStream deploymentPlan)
distribute
in interface DeploymentManager (src)
targets
- the targetsmoduleArchive
- the module archivedeploymentPlan
- the runtime configuration
java.lang.IllegalStateException
- when the manager is disconnectedpublic ProgressObject (src) redeploy(TargetModuleID (src) [] targetModuleIDs, java.io.File file, java.io.File file1) throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
DeploymentManager (src)
redeploy
in interface DeploymentManager (src)
targetModuleIDs
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnected
java.lang.UnsupportedOperationException
- when redeploy is not supportedpublic ProgressObject (src) redeploy(TargetModuleID (src) [] targetModuleIDs, java.io.InputStream inputStream, java.io.InputStream inputStream1) throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
DeploymentManager (src)
redeploy
in interface DeploymentManager (src)
targetModuleIDs
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnected
java.lang.UnsupportedOperationException
- when redeploy is not supportedpublic ProgressObject (src) start(TargetModuleID (src) [] targetModuleIDs)
start
in interface DeploymentManager (src)
targetModuleIDs
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnectedpublic ProgressObject (src) stop(TargetModuleID (src) [] targetModuleIDs)
stop
in interface DeploymentManager (src)
targetModuleIDs
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnectedpublic ProgressObject (src) undeploy(TargetModuleID (src) [] targetModuleIDs)
undeploy
in interface DeploymentManager (src)
targetModuleIDs
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnectedpublic boolean isRedeploySupported()
isRedeploySupported
in interface DeploymentManager (src)
public ProgressObject (src) redeploy(TargetModuleID (src) [] moduleIDList)
moduleIDList
- the list of modules
java.lang.IllegalStateException
- when the manager is disconnected
java.lang.UnsupportedOperationException
- when redeploy is not supportedpublic void release()
release
in interface DeploymentManager (src)
public java.util.Locale getDefaultLocale()
getDefaultLocale
in interface DeploymentManager (src)
public java.util.Locale getCurrentLocale()
getCurrentLocale
in interface DeploymentManager (src)
public void setLocale(java.util.Locale locale)
setLocale
in interface DeploymentManager (src)
locale
- the new localpublic boolean isLocaleSupported(java.util.Locale locale)
isLocaleSupported
in interface DeploymentManager (src)
locale
- the locale
public java.util.Locale[] getSupportedLocales()
getSupportedLocales
in interface DeploymentManager (src)
public DConfigBeanVersionType (src) getDConfigBeanVersion()
getDConfigBeanVersion
in interface DeploymentManager (src)
public void setDConfigBeanVersion(DConfigBeanVersionType (src) dConfigBeanVersionType) throws DConfigBeanVersionUnsupportedException (src)
DeploymentManager (src)
setDConfigBeanVersion
in interface DeploymentManager (src)
dConfigBeanVersionType
- the version
DConfigBeanVersionUnsupportedException (src)
public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType (src) dConfigBeanVersionType)
DeploymentManager (src)
isDConfigBeanVersionSupported
in interface DeploymentManager (src)
dConfigBeanVersionType
- the version
public boolean isDConfigBeanVersionTypeSupported(DConfigBeanVersionType (src) version)
version
- the version
public void setDConfigBeanVersionType(DConfigBeanVersionType (src) version)
version
- the version
java.lang.UnsupportedOperationException
- when the version is not supported
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |