public class DefaultJsr88DeploymentManager extends java.lang.Object implements Jsr88DeploymentManager
Jsr88DeploymentManager.TargetType| Constructor and Description |
|---|
DefaultJsr88DeploymentManager(javax.enterprise.deploy.spi.DeploymentManager deploymentManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.enterprise.deploy.spi.DeploymentConfiguration |
createDeploymentConfiguration(javax.enterprise.deploy.model.DeployableObject deployableObject)
Creates a DeployementConfiguration object from a DeployableObject.
|
java.lang.String |
getArchiveVersion(javax.enterprise.deploy.spi.TargetModuleID targetModuleID)
Returns the Archive version associated witht the given TargetModuleID.
|
protected javax.enterprise.deploy.spi.DeploymentManager |
getDeploymentManager() |
javax.enterprise.deploy.spi.TargetModuleID[] |
getInstalledApplications(javax.enterprise.deploy.spi.Target[] targets,
javax.enterprise.deploy.shared.ModuleType moduleType,
java.lang.String applicationName)
Returns a TargetModuleID array representing applications found on the server that match
the given application by name and JEE ModuleType.
|
java.util.Iterator |
getRootException(javax.enterprise.deploy.spi.status.DeploymentStatus deploymentStatus)
Returns the RootException of a DeploymentStatus as an iterator of Throwable instances.
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getTargetModuleIDs(java.util.List<java.lang.String> applicationIDs,
java.util.logging.Logger logger)
Returns a list of TargetModuleIDs corresponding to the given application IDs.
|
javax.enterprise.deploy.spi.Target[] |
getTargets(Jsr88DeploymentManager.TargetType targetType)
Returns the Targets given a specify targetType.
|
javax.enterprise.deploy.spi.status.ProgressObject |
invokeDeployApplicationMethod(javax.enterprise.deploy.spi.Target[] targets,
java.io.File applicationFile,
java.io.File deploymentPlan,
java.lang.String applicationName,
boolean isApplicationLibrary)
Invokes Deployment of an Application file and DeploymentPlan given on the given targets.
|
javax.enterprise.deploy.spi.status.ProgressObject |
invokeRedeployApplicationMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps,
java.io.File applicationFile,
java.io.File deploymentPlan,
java.lang.String applicationName)
Invokes ReDeployment of an Application file and DeploymentPlan given on the given targets.
|
javax.enterprise.deploy.spi.status.ProgressObject |
invokeStartMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
Invokes a start of an Application.
|
javax.enterprise.deploy.spi.status.ProgressObject |
invokeStopMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
Invokes a stop of an Application.
|
javax.enterprise.deploy.spi.status.ProgressObject |
invokeUndeployApplicationsMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
Invokes UnDeployment of an Application.
|
protected boolean |
isMatchingApplication(javax.enterprise.deploy.spi.TargetModuleID application,
java.lang.String applicationName)
Validates whether the application name matches the TargetModuleID passed.
|
public DefaultJsr88DeploymentManager(javax.enterprise.deploy.spi.DeploymentManager deploymentManager)
protected javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager()
public javax.enterprise.deploy.spi.Target[] getTargets(Jsr88DeploymentManager.TargetType targetType) throws java.lang.Exception
getTargets in interface Jsr88DeploymentManagertargetType - The TargetType (SERVERS, CLUSTERS or ALL).java.lang.Exceptionpublic javax.enterprise.deploy.spi.TargetModuleID[] getInstalledApplications(javax.enterprise.deploy.spi.Target[] targets,
javax.enterprise.deploy.shared.ModuleType moduleType,
java.lang.String applicationName)
throws java.lang.Exception
getInstalledApplications in interface Jsr88DeploymentManagertargets - the server Targets to search on.moduleType - the JEE ModuleType (EAR/WAR/RAR etc) to search for.applicationName - the name of the application to search for.java.lang.Exceptionpublic javax.enterprise.deploy.spi.TargetModuleID[] getTargetModuleIDs(java.util.List<java.lang.String> applicationIDs,
java.util.logging.Logger logger)
throws java.lang.Exception
getTargetModuleIDs in interface Jsr88DeploymentManagerapplicationIDs - Application Names.logger - Logger to be used for warning messagesjava.lang.Exceptionprotected boolean isMatchingApplication(javax.enterprise.deploy.spi.TargetModuleID application,
java.lang.String applicationName)
throws java.lang.Exception
application - the application represented by an instance of TargetModuleID.applicationName - the name of the application to match.java.lang.Exceptionpublic javax.enterprise.deploy.spi.DeploymentConfiguration createDeploymentConfiguration(javax.enterprise.deploy.model.DeployableObject deployableObject)
throws java.lang.Exception
createDeploymentConfiguration in interface Jsr88DeploymentManagerdeployableObject - The deployableObject representing the JEE module to be deployed.java.lang.Exceptionpublic javax.enterprise.deploy.spi.status.ProgressObject invokeDeployApplicationMethod(javax.enterprise.deploy.spi.Target[] targets,
java.io.File applicationFile,
java.io.File deploymentPlan,
java.lang.String applicationName,
boolean isApplicationLibrary)
throws java.lang.Exception
invokeDeployApplicationMethod in interface Jsr88DeploymentManagertargets - The targets where the application will be deployed.applicationFile - The archive being deployed (archive or exploded directory)deploymentPlan - The deploymentPlan for this application.applicationName - The name of the applicatioin being deployed.isApplicationLibrary - indicates if the application is a Shared Library or not.java.lang.Exceptionpublic javax.enterprise.deploy.spi.status.ProgressObject invokeRedeployApplicationMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps,
java.io.File applicationFile,
java.io.File deploymentPlan,
java.lang.String applicationName)
throws java.lang.Exception
invokeRedeployApplicationMethod in interface Jsr88DeploymentManagerapps - The TargetModuleID array representing the existing applications to be replaced.applicationFile - The archive being deployed (archive or exploded directory)deploymentPlan - The deploymentPlan for this application.applicationName - The name of the application being redeployed.java.lang.Exceptionpublic javax.enterprise.deploy.spi.status.ProgressObject invokeUndeployApplicationsMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
throws java.lang.Exception
invokeUndeployApplicationsMethod in interface Jsr88DeploymentManagerapps - The TargetModuleID array representing the existing applications to be removed.java.lang.Exceptionpublic javax.enterprise.deploy.spi.status.ProgressObject invokeStartMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
throws java.lang.Exception
invokeStartMethod in interface Jsr88DeploymentManagerapps - The TargetModuleID array representing the existing applications to be started.java.lang.Exceptionpublic javax.enterprise.deploy.spi.status.ProgressObject invokeStopMethod(javax.enterprise.deploy.spi.TargetModuleID[] apps)
throws java.lang.Exception
invokeStopMethod in interface Jsr88DeploymentManagerapps - The TargetModuleID array representing the existing applications to be stoped.java.lang.Exceptionpublic java.lang.String getArchiveVersion(javax.enterprise.deploy.spi.TargetModuleID targetModuleID)
getArchiveVersion in interface Jsr88DeploymentManagertargetModuleID - public java.util.Iterator getRootException(javax.enterprise.deploy.spi.status.DeploymentStatus deploymentStatus)
getRootException in interface Jsr88DeploymentManagerdeploymentStatus -