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.ActionType
getAction()
Retrieve the deployment ActionType for this event.javax.enterprise.deploy.shared.CommandType
getCommand()
Retrieve the deployment CommandType of this event.String
getMessage()
Retrieve any additional information about the status of this event.javax.enterprise.deploy.shared.StateType
getState()
Retrieve the StateType value.boolean
isCompleted()
A convience method to report if the operation is in the completed state.boolean
isFailed()
A convience method to report if the operation is in the failed state.boolean
isRunning()
A convience method to report if the operation is in the running state.void
setCommand(javax.enterprise.deploy.shared.CommandType commandType)
void
setMessage(String message)
void
setState(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:
getAction
in 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:
getCommand
in 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:
getMessage
in interfacejavax.enterprise.deploy.spi.status.DeploymentStatus
- Returns:
- message text
-
getState
public javax.enterprise.deploy.shared.StateType getState()
Retrieve the StateType value.- Specified by:
getState
in 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:
isCompleted
in 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:
isFailed
in 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:
isRunning
in 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)
-
-