FileDocCategorySizeDatePackage
DeploymentStatusImpl.javaAPI DocGlassfish v2 API4565Fri May 04 22:34:26 BST 2007com.sun.enterprise.deployapi

DeploymentStatusImpl

public class DeploymentStatusImpl extends Object implements javax.enterprise.deploy.spi.status.DeploymentStatus
author
dochez

Fields Summary
ProgressObjectImpl
progressObject
javax.enterprise.deploy.shared.StateType
stateType
String
lastMsg
javax.enterprise.deploy.shared.CommandType
commandType
Constructors Summary
public DeploymentStatusImpl(ProgressObjectImpl progressObject)
Creates a new instance of DeploymentStatusImpl

    
           
       
        this.progressObject = progressObject;
    
public DeploymentStatusImpl()

    
Methods Summary
public javax.enterprise.deploy.shared.ActionTypegetAction()
Retrieve the deployment ActionType for this event.

return
the ActionType Object

        return ActionType.EXECUTE;
    
public javax.enterprise.deploy.shared.CommandTypegetCommand()
Retrieve the deployment CommandType of this event.

return
the CommandType Object

        if (progressObject!=null) {
            return progressObject.getCommandType();
        } else {
            return commandType;
        }
    
public java.lang.StringgetMessage()
Retrieve any additional information about the status of this event.

return
message text

        return lastMsg;
    
public javax.enterprise.deploy.shared.StateTypegetState()
Retrieve the StateType value.

return
the StateType object

        return stateType;
    
public booleanisCompleted()
A convience method to report if the operation is in the completed state.

return
true if this command has completed successfully

        return StateType.COMPLETED.equals(stateType);        
    
public booleanisFailed()
A convience method to report if the operation is in the failed state.

return
true if this command has failed

        return StateType.FAILED.equals(stateType);        
    
public booleanisRunning()
A convience method to report if the operation is in the running state.

return
true if this command is still running

        return StateType.RUNNING.equals(stateType);
    
public voidsetCommand(javax.enterprise.deploy.shared.CommandType commandType)

        this.commandType = commandType;
    
public voidsetMessage(java.lang.String message)

        lastMsg = message;
    
public voidsetState(javax.enterprise.deploy.shared.StateType stateType)

        this.stateType = stateType;