this.deploymentStatus = (DeploymentStatusImpl)deploymentStatus; this.targetModules = targetModules;
Add a progress listenerparamlistener the listener listeners.add(listener);
listeners.add(listener);
Cancels the deploymentthrowsjavax.enterprise.deploy.spi.exceptions.OperationUnsupportedException when cancel is not supported throw new OperationUnsupportedException("cancel not supported");
throw new OperationUnsupportedException("cancel not supported");
Return the client configuration associated with the moduleparamid the module idreturnthe client configuration or null if none exists return null; //[todo] implement method
return null; //[todo] implement method
Retrieve the status of the deploymentreturnthe status return deploymentStatus;
return deploymentStatus;
Retrieve the resulting target module idsreturnthe module ids return targetModules;
return targetModules;
Is cancel supportedreturntrue when cancel is supported, false otherwise return false;
return false;
Is stop supportedreturntrue when stop is supported, false otherwise return false;
Remove a progress listenerparamlistener the listener listeners.remove(listener);
listeners.remove(listener);
Set the current deployment status deploymentStatus.setStateType(stateType); deploymentStatus.setMessage(message); ProgressEvent progressEvent = new ProgressEvent(this, moduleID, deploymentStatus); for (int i = 0; i < listeners.size(); i++) { ProgressListener progressListener = (ProgressListener)listeners.get(i); progressListener.handleProgressEvent(progressEvent); }
deploymentStatus.setStateType(stateType); deploymentStatus.setMessage(message); ProgressEvent progressEvent = new ProgressEvent(this, moduleID, deploymentStatus); for (int i = 0; i < listeners.size(); i++) { ProgressListener progressListener = (ProgressListener)listeners.get(i); progressListener.handleProgressEvent(progressEvent); }
Stops the deploymentthrowsjavax.enterprise.deploy.spi.exceptions.OperationUnsupportedException when stop is not supported throw new OperationUnsupportedException("stop not supported");
throw new OperationUnsupportedException("stop not supported");
StringBuffer sbuf = new StringBuffer(); sbuf.append("[ deploymentStatus=").append(deploymentStatus); for (int i = 0; i < targetModules.length; i++) { sbuf.append(", ").append(targetModules[i]); } sbuf.append(" ]"); return sbuf.toString();