Package org.glassfish.deployapi
Class DeploymentStatusImpl
- java.lang.Object
-
- org.glassfish.deployapi.DeploymentStatusImpl
-
- All Implemented Interfaces:
javax.enterprise.deploy.spi.status.DeploymentStatus
- Direct Known Subclasses:
DeploymentStatusImplWithError
public class DeploymentStatusImpl extends Object implements javax.enterprise.deploy.spi.status.DeploymentStatus
- Author:
- dochez
-
-
Constructor Summary
Constructors Constructor Description DeploymentStatusImpl()DeploymentStatusImpl(ProgressObjectImpl progressObject)Creates a new instance of DeploymentStatusImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.enterprise.deploy.shared.ActionTypegetAction()Retrieve the deployment ActionType for this event.javax.enterprise.deploy.shared.CommandTypegetCommand()Retrieve the deployment CommandType of this event.StringgetMessage()Retrieve any additional information about the status of this event.javax.enterprise.deploy.shared.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.voidsetCommand(javax.enterprise.deploy.shared.CommandType commandType)voidsetMessage(String message)voidsetState(javax.enterprise.deploy.shared.StateType stateType)
-
-
-
Constructor Detail
-
DeploymentStatusImpl
public DeploymentStatusImpl(ProgressObjectImpl progressObject)
Creates a new instance of DeploymentStatusImpl
-
DeploymentStatusImpl
public DeploymentStatusImpl()
-
-
Method Detail
-
getAction
public javax.enterprise.deploy.shared.ActionType getAction()
Retrieve the deployment ActionType for this event.- Specified by:
getActionin interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- the ActionType Object
-
getCommand
public javax.enterprise.deploy.shared.CommandType getCommand()
Retrieve the deployment CommandType of this event.- Specified by:
getCommandin interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- the CommandType Object
-
getMessage
public String getMessage()
Retrieve any additional information about the status of this event.- Specified by:
getMessagein interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- message text
-
getState
public javax.enterprise.deploy.shared.StateType getState()
Retrieve the StateType value.- Specified by:
getStatein interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- the StateType object
-
isCompleted
public boolean isCompleted()
A convience method to report if the operation is in the completed state.- Specified by:
isCompletedin interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- 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.- Specified by:
isFailedin interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- true if this command has failed
-
isRunning
public boolean isRunning()
A convience method to report if the operation is in the running state.- Specified by:
isRunningin interfacejavax.enterprise.deploy.spi.status.DeploymentStatus- Returns:
- true if this command is still running
-
setState
public void setState(javax.enterprise.deploy.shared.StateType stateType)
-
setMessage
public void setMessage(String message)
-
setCommand
public void setCommand(javax.enterprise.deploy.shared.CommandType commandType)
-
-