Class 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 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 interface javax.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 interface javax.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 interface javax.enterprise.deploy.spi.status.DeploymentStatus
        Returns:
        message text
      • getState

        public javax.enterprise.deploy.shared.StateType getState()
        Retrieve the StateType value.
        Specified by:
        getState in interface javax.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 interface javax.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 interface javax.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 interface javax.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)