org.jboss.deployment.spi.status
Class DeploymentStatusImpl

java.lang.Object
  extended byorg.jboss.deployment.spi.status.DeploymentStatusImpl
All Implemented Interfaces:
DeploymentStatus (src)

public class DeploymentStatusImpl
extends java.lang.Object
implements DeploymentStatus (src)

The DeploymentStatus interface provides information about the progress status of a deployment action.


Constructor Summary
DeploymentStatusImpl(StateType (src)  stateType, CommandType (src)  commandType, ActionType (src)  actionType, java.lang.String message)
           
 
Method Summary
 ActionType (src) getAction()
          The action of this deployment
 CommandType (src) getCommand()
          The deployment command
 java.lang.String getMessage()
          Get the message
 StateType (src) getState()
          Get the state of the deployment
 boolean isCompleted()
          Is the deployment complete
 boolean isFailed()
          Has the deployment failed
 boolean isRunning()
          Is the deployment in progress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentStatusImpl

public DeploymentStatusImpl(StateType (src)  stateType,
                            CommandType (src)  commandType,
                            ActionType (src)  actionType,
                            java.lang.String message)
Method Detail

getState

public StateType (src)  getState()
Get the state of the deployment

Specified by:
getState in interface DeploymentStatus (src)
Returns:
the state

getCommand

public CommandType (src)  getCommand()
The deployment command

Specified by:
getCommand in interface DeploymentStatus (src)
Returns:
the command

getAction

public ActionType (src)  getAction()
The action of this deployment

Specified by:
getAction in interface DeploymentStatus (src)
Returns:
the action

getMessage

public java.lang.String getMessage()
Get the message

Specified by:
getMessage in interface DeploymentStatus (src)
Returns:
the message

isCompleted

public boolean isCompleted()
Is the deployment complete

Specified by:
isCompleted in interface DeploymentStatus (src)
Returns:
true when complete, false otherwise

isFailed

public boolean isFailed()
Has the deployment failed

Specified by:
isFailed in interface DeploymentStatus (src)
Returns:
true when failed, false otherwise

isRunning

public boolean isRunning()
Is the deployment in progress

Specified by:
isRunning in interface DeploymentStatus (src)
Returns:
true when in progress, false otherwise