public class SunDeploymentManager extends Object implements javax.enterprise.deploy.spi.DeploymentManager
Modifier and Type | Class and Description |
---|---|
protected static class |
SunDeploymentManager.DeploymentFacilityModuleWork
Encapsulates information used with a single invocation of a DeploymentFacility method--
that is, one item of "work" the DeploymentFacility is being asked to perform.
|
protected static class |
SunDeploymentManager.TargetModuleIDCollection
Organizes the target module IDs passed by a JSR88 client for easy processing one module ID
at a time.
|
Constructor and Description |
---|
SunDeploymentManager()
Creates a new instance of DeploymentManager
|
SunDeploymentManager(ServerConnectionIdentifier sci)
Creates a new instance of DeploymentManager
|
Modifier and Type | Method and Description |
---|---|
javax.enterprise.deploy.spi.DeploymentConfiguration |
createConfiguration(javax.enterprise.deploy.model.DeployableObject dObj)
Retrieve the object that provides server-specific deployment
configuration information for the J2EE deployable component.
|
javax.enterprise.deploy.spi.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targetList,
Archive moduleArchive,
Archive deploymentPlan,
Object deploymentOptions)
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.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targetList,
File moduleArchive,
File 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.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targetList,
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.status.ProgressObject |
distribute(javax.enterprise.deploy.spi.Target[] targetList,
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.
|
Archive |
getArchive(URI path,
String name)
Creates a new instance of Archive which can be used to
store application elements in a layout that can be directly used by
the application server.
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
Retrieve the list of all J2EE application modules running
or not running on the identified targets.
|
Locale |
getCurrentLocale()
Returns the active locale this implementation of
javax.enterprise.deploy.spi subpackages is running.
|
javax.enterprise.deploy.shared.DConfigBeanVersionType |
getDConfigBeanVersion()
Returns the J2EE platform version number for which the
configuration beans are provided.
|
Locale |
getDefaultLocale()
Returns the default locale supported by this implementation of
javax.enterprise.deploy.spi subpackages.
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
Retrieve the list of J2EE application modules distributed
to the identified targets and that are currently not
running on the associated server or servers.
|
protected Properties |
getProperties() |
javax.enterprise.deploy.spi.TargetModuleID[] |
getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType,
javax.enterprise.deploy.spi.Target[] targetList)
Retrieve the list of J2EE application modules distributed
to the identified targets and that are currently running
on the associated server or servers.
|
Locale[] |
getSupportedLocales()
Returns an array of supported locales for this implementation.
|
javax.enterprise.deploy.spi.Target[] |
getTargets()
Retrieve the list of deployment targets supported by
this DeploymentManager.
|
boolean |
isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
Returns 'true' if the configuration beans support the J2EE platform
version specified.
|
boolean |
isLocaleSupported(Locale locale)
Reports if this implementation supports the designated locale.
|
boolean |
isRedeploySupported()
This method designates whether this platform vendor provides
application redeployment functionality.
|
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList,
File moduleArchive,
File deploymentPlan)
(optional)
The redeploy method provides a means for updating currently
deployed J2EE applications.
|
javax.enterprise.deploy.spi.status.ProgressObject |
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList,
InputStream moduleArchive,
InputStream deploymentPlan)
(optional)
The redeploy method provides a means for updating currently
deployed J2EE applications.
|
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 version)
Set the configuration beans to be used to the J2EE platform
version specificed.
|
void |
setLocale(Locale locale)
Set the active locale for this implementation of
javax.enterprise.deploy.spi subpackages to run.
|
void |
setServerConnectionEnvironment(ServerConnectionEnvironment env)
Set additional env vars for the jmx https connector, provided
by the client.
|
javax.enterprise.deploy.spi.status.ProgressObject |
start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
Start the application running.
|
javax.enterprise.deploy.spi.status.ProgressObject |
stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
Stop the application running.
|
javax.enterprise.deploy.spi.status.ProgressObject |
undeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
Remove the application from the target server.
|
public SunDeploymentManager()
public SunDeploymentManager(ServerConnectionIdentifier sci)
public void setServerConnectionEnvironment(ServerConnectionEnvironment env)
public javax.enterprise.deploy.spi.Target[] getTargets() throws IllegalStateException
getTargets
in interface javax.enterprise.deploy.spi.DeploymentManager
IllegalStateException
- is thrown when there is a problem getting
Connection Sourcepublic javax.enterprise.deploy.spi.TargetModuleID[] getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException
getRunningModules
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleType
- A predefined designator for a J2EE
module type.targetList
- A list of deployment Target designators
the user wants checked for module run
status.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.javax.enterprise.deploy.spi.exceptions.TargetException
- An invalid Target designator
encountered.public javax.enterprise.deploy.spi.TargetModuleID[] getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException
getNonRunningModules
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleType
- A predefined designator for a J2EE
module type.targetList
- A list of deployment Target designators
the user wants checked for module not
running status.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.javax.enterprise.deploy.spi.exceptions.TargetException
- An invalid Target designator
encountered.public javax.enterprise.deploy.spi.TargetModuleID[] getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException
getAvailableModules
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleType
- A predefined designator for a J2EE
module type.targetList
- A list of deployment Target designators
the user wants checked for module not
running status.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.javax.enterprise.deploy.spi.exceptions.TargetException
- An invalid Target designator
encountered.public javax.enterprise.deploy.spi.DeploymentConfiguration createConfiguration(javax.enterprise.deploy.model.DeployableObject dObj) throws javax.enterprise.deploy.spi.exceptions.InvalidModuleException
createConfiguration
in interface javax.enterprise.deploy.spi.DeploymentManager
dObj
- An object representing a J2EE deployable component.javax.enterprise.deploy.spi.exceptions.InvalidModuleException
- The DeployableObject is an
unknown or unsupport component for this
configuration tool.public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, File moduleArchive, File deploymentPlan) throws IllegalStateException
distribute
in interface javax.enterprise.deploy.spi.DeploymentManager
targetList
- A list of server targets the user is specifying
this application be deployed to.moduleArchive
- The file name of the application archive
to be disrtibuted.deploymentPlan
- The XML file containing the runtime
configuration information associated with
this application archive.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
distribute
in interface javax.enterprise.deploy.spi.DeploymentManager
targetList
- A list of server targets the user is specifying
this application be deployed to.moduleArchive
- The input stream containing the application
archive to be disrtibuted.deploymentPlan
- The input stream containing the deployment
configuration information associated with
this application archive.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, javax.enterprise.deploy.shared.ModuleType type, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
distribute
in interface javax.enterprise.deploy.spi.DeploymentManager
targetList
- A list of server targets the user is specifying
this application be deployed to.moduleType
- The module type of this application archive.moduleArchive
- The input stream containing the application
archive to be disrtibuted.deploymentPlan
- The input stream containing the deployment
configuration information associated with
this application archive.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public javax.enterprise.deploy.spi.status.ProgressObject start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException
Only the TargetModuleIDs which represent a root module are valid for being started. A root TargetModuleID has no parent. A TargetModuleID with a parent can not be individually started. A root TargetModuleID module and all its child modules will be started.
start
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleIDList
- A array of TargetModuleID objects
representing the modules to be started.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public javax.enterprise.deploy.spi.status.ProgressObject stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException
Only the TargetModuleIDs which represent a root module are valid for being stopped. A root TargetModuleID has no parent. A TargetModuleID with a parent can not be individually stopped. A root TargetModuleID module and all its child modules will be stopped.
stop
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleIDList
- A array of TargetModuleID objects
representing the modules to be stopped.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public javax.enterprise.deploy.spi.status.ProgressObject undeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException
Only the TargetModuleIDs which represent a root module are valid for undeployment. A root TargetModuleID has no parent. A TargetModuleID with a parent can not be undeployed. A root TargetModuleID module and all its child modules will be undeployed. The root TargetModuleID module and all its child modules must stopped before they can be undeployed.
undeploy
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleIDList
- An array of TargetModuleID objects representing
the root modules to be stopped.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.public boolean isRedeploySupported()
isRedeploySupported
in interface javax.enterprise.deploy.spi.DeploymentManager
public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException
redeploy
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleIDList
- An array of designators of the applications
to be updated.moduleArchive
- The file name of the application archive
to be disrtibuted.deploymentPlan
- The deployment configuration information
associated with this application archive.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.UnsupportedOperationException
- this optional command
is not supported by this implementation.public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException
redeploy
in interface javax.enterprise.deploy.spi.DeploymentManager
moduleIDList
- An array of designators of the applications
to be updated.moduleArchive
- The input stream containing the application
archive to be disrtibuted.deploymentPlan
- The input stream containing the runtime
configuration information associated with
this application archive.IllegalStateException
- is thrown when the method is
called when running in disconnected mode.UnsupportedOperationException
- this optional command
is not supported by this implementation.public 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) throws UnsupportedOperationException
setLocale
in interface javax.enterprise.deploy.spi.DeploymentManager
UnsupportedOperationException
- the provide locale is
not supported.public Locale[] getSupportedLocales()
getSupportedLocales
in interface javax.enterprise.deploy.spi.DeploymentManager
public boolean isLocaleSupported(Locale locale)
isLocaleSupported
in interface javax.enterprise.deploy.spi.DeploymentManager
public javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
getDConfigBeanVersion
in interface javax.enterprise.deploy.spi.DeploymentManager
public boolean isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
isDConfigBeanVersionSupported
in interface javax.enterprise.deploy.spi.DeploymentManager
version
- a DConfigBeanVersionType object representing the
J2EE platform version for which support is requested.public void setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType version) throws javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
setDConfigBeanVersion
in interface javax.enterprise.deploy.spi.DeploymentManager
version
- a DConfigBeanVersionType object representing the
J2EE platform version for which support is requested.javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
- when the
requested bean version is not supported.protected Properties getProperties()
public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, Archive moduleArchive, Archive deploymentPlan, Object deploymentOptions) throws IllegalStateException
targetList
- A list of server targets the user is specifying
this application be deployed to.moduleArchive
- The abstraction for the application
archive to be disrtibuted.deploymentPlan
- The archive containing the deployment
configuration information associated with
this application archive.deploymentOptions
- is a JavaBeans compliant component
containing all deployment options for this deployable
unit. This object must be created using the
BeanInfo instance returned by
DeploymentConfiguration.getDeploymentOptionsIllegalStateException
- is thrown when the method is
called when running in disconnected mode.public Archive getArchive(URI path, String name) throws IOException
path
- the directory in which to create this archive if local
storage is a possibility.name
- is the desired name for the archiveIOException
Copyright © 2018. All rights reserved.