FileDocCategorySizeDatePackage
DeploymentStatusImpl.javaAPI DocJBoss 4.2.13561Fri Jul 13 20:52:32 BST 2007org.jboss.deployment.spi.status

DeploymentStatusImpl

public class DeploymentStatusImpl extends Object implements javax.enterprise.deploy.spi.status.DeploymentStatus
The DeploymentStatus interface provides information about the progress status of a deployment action.
author
thomas.diesler@jboss.org
version
$Revision: 62520 $

Fields Summary
private javax.enterprise.deploy.shared.StateType
stateType
private javax.enterprise.deploy.shared.CommandType
commandType
private javax.enterprise.deploy.shared.ActionType
actionType
private String
message
Constructors Summary
public DeploymentStatusImpl(javax.enterprise.deploy.shared.StateType stateType, javax.enterprise.deploy.shared.CommandType commandType, javax.enterprise.deploy.shared.ActionType actionType, String message)

      this.stateType = stateType;
      this.commandType = commandType;
      this.actionType = actionType;
      this.message = message;
   
Methods Summary
public javax.enterprise.deploy.shared.ActionTypegetAction()
The action of this deployment

return
the action

      return actionType;
   
public javax.enterprise.deploy.shared.CommandTypegetCommand()
The deployment command

return
the command

      return commandType;
   
public java.lang.StringgetMessage()
Get the message

return
the message

      return message;
   
public javax.enterprise.deploy.shared.StateTypegetState()
Get the state of the deployment

return
the state

      return stateType;
   
public booleanisCompleted()
Is the deployment complete

return
true when complete, false otherwise

      return stateType == StateType.COMPLETED;
   
public booleanisFailed()
Has the deployment failed

return
true when failed, false otherwise

      return stateType == StateType.FAILED;
   
public booleanisRunning()
Is the deployment in progress

return
true when in progress, false otherwise

      return stateType == StateType.RUNNING;
   
voidsetMessage(java.lang.String message)
Set the current deployment message

      this.message = message;
   
voidsetStateType(javax.enterprise.deploy.shared.StateType stateType)
Set the current deployment status

      this.stateType = stateType;
   
public java.lang.StringtoString()

      return "[ stateType=" + stateType + 
      ", commandType=" + commandType + 
      ", actionType=" + actionType +
      ", message=" + message +
      " ]";