javax.enterprise.deploy.spi.status

Interface DeploymentStatus

public interface DeploymentStatus

The DeploymentStatus interface provides information about the progress of a deployment action.
Method Summary
ActionTypegetAction()
Retrieve the deployment ActionType for this event.
CommandTypegetCommand()
Retrieve the deployment CommandType of this event.
StringgetMessage()
Retrieve any additional information about the status of this event.
StateTypegetState()
Retrieve the StateType value.
booleanisCompleted()
A convience method to report if the operation is in the completed state.
booleanisFailed()
A convience method to report if the operation is in the failed state.
booleanisRunning()
A convience method to report if the operation is in the running state.

Method Detail

getAction

public ActionType getAction()
Retrieve the deployment ActionType for this event.

Returns: the ActionType Object

getCommand

public CommandType getCommand()
Retrieve the deployment CommandType of this event.

Returns: the CommandType Object

getMessage

public String getMessage()
Retrieve any additional information about the status of this event.

Returns: message text

getState

public StateType getState()
Retrieve the StateType value.

Returns: the StateType object

isCompleted

public boolean isCompleted()
A convience method to report if the operation is in the completed state.

Returns: true if this command has completed successfully

isFailed

public boolean isFailed()
A convience method to report if the operation is in the failed state.

Returns: true if this command has failed

isRunning

public boolean isRunning()
A convience method to report if the operation is in the running state.

Returns: true if this command is still running