Class CommandResult

java.lang.Object
com.ibm.wsspi.collective.plugins.helpers.CommandResult

public class CommandResult extends Object
Helper class that encapsulates the result of a single command.
  • Constructor Details

    • CommandResult

      public CommandResult(String description, String status, int returnCode, String stdout, String stderr)
      Parameters:
      description -
      status -
      returnCode -
      stdout -
      stderr -
    • CommandResult

      public CommandResult(String description, String status)
      Convenience constructor when we just want to add a description and status, and set the current time stamp.
    • CommandResult

      public CommandResult(String description, int returnCode, String stderr)
      Convenience constructor for failed results
  • Method Details

    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getStatus

      public String getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Parameters:
      status - the status to set
    • getReturnCode

      public int getReturnCode()
      Returns:
      the returnCode
    • setReturnCode

      public void setReturnCode(int returnCode)
      Parameters:
      returnCode - the returnCode to set
    • getStdout

      public String getStdout()
      Returns:
      the stdout
    • setStdout

      public void setStdout(String stdout)
      Parameters:
      stdout - the stdout to set
    • getStderr

      public String getStderr()
      Returns:
      the stderr
    • setStderr

      public void setStderr(String stderr)
      Parameters:
      stderr - the stderr to set
    • getTimestamp

      public long getTimestamp()
      Returns:
      the timestamp
    • setTimestamp

      public void setTimestamp(long timestamp)
      Parameters:
      timestamp - the timestamp to set