Methods Summary |
---|
public java.lang.String | getActualAction(java.lang.String resAction)
if (resAction.equals(DeploymentProperties.RES_DEPLOYMENT)) {
return DeploymentProperties.RES_NO_OP;
} else {
return resAction;
}
|
private com.sun.enterprise.deployment.backend.DeploymentEvent | getPostPhaseEvent(com.sun.enterprise.deployment.backend.DeploymentRequest req)Event that will be broadcasted at the end of the phase
return new DeploymentEvent(DeploymentEventType.POST_RES_DELETE, new DeploymentEventInfo(req));
|
private com.sun.enterprise.deployment.backend.DeploymentEvent | getPrePhaseEvent(com.sun.enterprise.deployment.backend.DeploymentRequest req)Event that will be broadcasted at the start of the phase
return new DeploymentEvent(DeploymentEventType.PRE_RES_DELETE, new DeploymentEventInfo(req));
|
public java.util.List | getRelevantResources(java.util.List allResources)
return ResourcesXMLParser.getNonConnectorResourcesList(allResources, false);
|
public void | handleDeployment(java.util.List targetList, java.util.List resourceList)
|
public void | handleRedeployment(java.util.List targetList, java.util.List resourceList)
handleUndeployment(targetList, resourceList);
|
public void | runPhase(DeploymentPhaseContext phaseCtx)Phase specific execution logic will go in this method.
Any phase implementing
this class will provide its implementation for this method.
DeploymentStatus status = phaseCtx.getDeploymentStatus();
try {
DeploymentRequest req = phaseCtx.getDeploymentRequest();
prePhaseNotify(getPrePhaseEvent(req));
doResourceOperation(req);
postPhaseNotify(getPostPhaseEvent(req));
phaseCtx.getDeploymentStatus().setStageStatus(DeploymentStatus.SUCCESS);
} catch(Exception e) {
status.setStageStatus(DeploymentStatus.WARNING);
status.setStageException(e);
status.setStageStatusMessage(e.getMessage());
}
|