org.glassfish.deployapi
Class DeploymentStatusImpl

java.lang.Object
  extended by org.glassfish.deployapi.DeploymentStatusImpl
All Implemented Interfaces:
DeploymentStatus
Direct Known Subclasses:
DeploymentStatusImplWithError

public class DeploymentStatusImpl
extends Object
implements DeploymentStatus

Author:
dochez

Constructor Summary
DeploymentStatusImpl()
           
DeploymentStatusImpl(ProgressObjectImpl progressObject)
          Creates a new instance of DeploymentStatusImpl
 
Method Summary
 ActionType getAction()
          Retrieve the deployment ActionType for this event.
 CommandType getCommand()
          Retrieve the deployment CommandType of this event.
 String getMessage()
          Retrieve any additional information about the status of this event.
 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(CommandType commandType)
           
 void setMessage(String message)
           
 void setState(StateType stateType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentStatusImpl

public DeploymentStatusImpl(ProgressObjectImpl progressObject)
Creates a new instance of DeploymentStatusImpl


DeploymentStatusImpl

public DeploymentStatusImpl()
Method Detail

getAction

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

Specified by:
getAction in interface DeploymentStatus
Returns:
the ActionType Object

getCommand

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

Specified by:
getCommand in interface DeploymentStatus
Returns:
the CommandType Object

getMessage

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

Specified by:
getMessage in interface DeploymentStatus
Returns:
message text

getState

public StateType getState()
Retrieve the StateType value.

Specified by:
getState in interface 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 interface 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 interface 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 interface DeploymentStatus
Returns:
true if this command is still running

setState

public void setState(StateType stateType)

setMessage

public void setMessage(String message)

setCommand

public void setCommand(CommandType commandType)


Copyright © 2012. All Rights Reserved.