Methods Summary |
---|
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_CREATE, 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_CREATE, new DeploymentEventInfo(req));
|
public java.util.List | getRelevantResources(java.util.List allResources)
return ResourcesXMLParser.getConnectorResourcesList(allResources, true);
|
public void | handleRedeployment(java.util.List targetList, java.util.List resourceList)
handleDeployment(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());
}
|