org.netbeans.modules.j2ee.deployment.plugins.api
Class ServerProgress
java.lang.Object
org.netbeans.modules.j2ee.deployment.plugins.api.ServerProgress
- All Implemented Interfaces:
- javax.enterprise.deploy.spi.status.ProgressObject
public class ServerProgress
- extends Object
- implements javax.enterprise.deploy.spi.status.ProgressObject
This is an utility class to avoid exposing deployment interface
ProgressObject directly in
server management SPI StartServer.
Typical usage is for plugin StartServer implementation to create
instance of ServerProgress and return it to caller of
startDeploymentManager, stopDeploymentManager and startDebugging.
Plugin will update caller on progress of the operation through
method calls to set status.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START_SERVER
public static final ServerProgress.Command START_SERVER
STOP_SERVER
public static final ServerProgress.Command STOP_SERVER
ServerProgress
public ServerProgress(Object server)
- Creates a new instance of StartServerProgress
setStatusStartRunning
public void setStatusStartRunning(String message)
setStatusStartFailed
public void setStatusStartFailed(String message)
setStatusStartCompleted
public void setStatusStartCompleted(String message)
setStatusStopRunning
public void setStatusStopRunning(String message)
setStatusStopFailed
public void setStatusStopFailed(String message)
setStatusStopCompleted
public void setStatusStopCompleted(String message)
notify
protected void notify(javax.enterprise.deploy.spi.status.ProgressEvent pe)
createDeploymentStatus
protected javax.enterprise.deploy.spi.status.DeploymentStatus createDeploymentStatus(javax.enterprise.deploy.shared.CommandType comtype,
String msg,
javax.enterprise.deploy.shared.StateType state)
createCompletedProgressEvent
protected javax.enterprise.deploy.spi.status.ProgressEvent createCompletedProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message)
createFailedProgressEvent
protected javax.enterprise.deploy.spi.status.ProgressEvent createFailedProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message)
createRunningProgressEvent
protected javax.enterprise.deploy.spi.status.ProgressEvent createRunningProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message)
addProgressListener
public void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
- Specified by:
addProgressListener in interface javax.enterprise.deploy.spi.status.ProgressObject
removeProgressListener
public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
- Specified by:
removeProgressListener in interface javax.enterprise.deploy.spi.status.ProgressObject
isCancelSupported
public boolean isCancelSupported()
- Specified by:
isCancelSupported in interface javax.enterprise.deploy.spi.status.ProgressObject
cancel
public void cancel()
throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- Specified by:
cancel in interface javax.enterprise.deploy.spi.status.ProgressObject
- Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
isStopSupported
public boolean isStopSupported()
- Specified by:
isStopSupported in interface javax.enterprise.deploy.spi.status.ProgressObject
stop
public void stop()
throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- Specified by:
stop in interface javax.enterprise.deploy.spi.status.ProgressObject
- Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
getClientConfiguration
public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID targetModuleID)
- Specified by:
getClientConfiguration in interface javax.enterprise.deploy.spi.status.ProgressObject
getDeploymentStatus
public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
- Specified by:
getDeploymentStatus in interface javax.enterprise.deploy.spi.status.ProgressObject
getResultTargetModuleIDs
public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
- Specified by:
getResultTargetModuleIDs in interface javax.enterprise.deploy.spi.status.ProgressObject