public class ServerProgress extends Object implements javax.enterprise.deploy.spi.status.ProgressObject
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.
Modifier and Type | Class and Description |
---|---|
static class |
ServerProgress.Command |
Modifier and Type | Field and Description |
---|---|
static ServerProgress.Command |
START_SERVER |
static ServerProgress.Command |
STOP_SERVER |
Constructor and Description |
---|
ServerProgress(Object server)
Creates a new instance of StartServerProgress
|
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol) |
void |
cancel() |
protected javax.enterprise.deploy.spi.status.ProgressEvent |
createCompletedProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message) |
protected javax.enterprise.deploy.spi.status.DeploymentStatus |
createDeploymentStatus(javax.enterprise.deploy.shared.CommandType comtype,
String msg,
javax.enterprise.deploy.shared.StateType state) |
protected javax.enterprise.deploy.spi.status.ProgressEvent |
createFailedProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message) |
protected javax.enterprise.deploy.spi.status.ProgressEvent |
createRunningProgressEvent(javax.enterprise.deploy.shared.CommandType command,
String message) |
javax.enterprise.deploy.spi.status.ClientConfiguration |
getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID targetModuleID) |
javax.enterprise.deploy.spi.status.DeploymentStatus |
getDeploymentStatus() |
javax.enterprise.deploy.spi.TargetModuleID[] |
getResultTargetModuleIDs() |
boolean |
isCancelSupported() |
boolean |
isStopSupported() |
protected void |
notify(javax.enterprise.deploy.spi.status.ProgressEvent pe) |
void |
removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol) |
void |
setStatusStartCompleted(String message) |
void |
setStatusStartFailed(String message) |
void |
setStatusStartRunning(String message) |
void |
setStatusStopCompleted(String message) |
void |
setStatusStopFailed(String message) |
void |
setStatusStopRunning(String message) |
void |
stop() |
public static final ServerProgress.Command START_SERVER
public static final ServerProgress.Command STOP_SERVER
public ServerProgress(Object server)
public void setStatusStartRunning(String message)
public void setStatusStartFailed(String message)
public void setStatusStartCompleted(String message)
public void setStatusStopRunning(String message)
public void setStatusStopFailed(String message)
public void setStatusStopCompleted(String message)
protected void notify(javax.enterprise.deploy.spi.status.ProgressEvent pe)
protected javax.enterprise.deploy.spi.status.DeploymentStatus createDeploymentStatus(javax.enterprise.deploy.shared.CommandType comtype, String msg, javax.enterprise.deploy.shared.StateType state)
protected javax.enterprise.deploy.spi.status.ProgressEvent createCompletedProgressEvent(javax.enterprise.deploy.shared.CommandType command, String message)
protected javax.enterprise.deploy.spi.status.ProgressEvent createFailedProgressEvent(javax.enterprise.deploy.shared.CommandType command, String message)
protected javax.enterprise.deploy.spi.status.ProgressEvent createRunningProgressEvent(javax.enterprise.deploy.shared.CommandType command, String message)
public void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
addProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
removeProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
public boolean isCancelSupported()
isCancelSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
public void cancel() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
cancel
in interface javax.enterprise.deploy.spi.status.ProgressObject
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
public boolean isStopSupported()
isStopSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
public void stop() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
stop
in interface javax.enterprise.deploy.spi.status.ProgressObject
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID targetModuleID)
getClientConfiguration
in interface javax.enterprise.deploy.spi.status.ProgressObject
public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
getDeploymentStatus
in interface javax.enterprise.deploy.spi.status.ProgressObject
public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
getResultTargetModuleIDs
in interface javax.enterprise.deploy.spi.status.ProgressObject