Class ModuleStatus

java.lang.Object
PamController.status.ModuleStatus

public class ModuleStatus extends Object
  • Field Details

    • STATUS_OK

      public static final int STATUS_OK
      Put the sates in as ints so that we can use > in order to determine the highest state if multiple checks are carried out within a module.
      See Also:
    • STATUS_WARNING

      public static final int STATUS_WARNING
      See Also:
    • STATUS_ERROR

      public static final int STATUS_ERROR
      See Also:
  • Constructor Details

    • ModuleStatus

      public ModuleStatus(int status, String message)
      Parameters:
      status -
      message -
    • ModuleStatus

      public ModuleStatus(int status)
      Parameters:
      status -
    • ModuleStatus

      public ModuleStatus(int status, String message, RemedialAction remedialAction)
      Parameters:
      status -
      message -
      remedialAction -
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getStatus

      public int getStatus()
      Returns:
      the status
    • setStatus

      public void setStatus(int status)
      Parameters:
      status - the status to set
    • getMessage

      public String getMessage()
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Parameters:
      message - the message to set
    • getRemedialAction

      public RemedialAction getRemedialAction()
      Returns:
      the remedialAction
    • setRemedialAction

      public void setRemedialAction(RemedialAction remedialAction)
      Parameters:
      remedialAction - the remedialAction to set
    • getStatusString

      public String getStatusString()
      Returns:
      The status as a string
    • getStatusString

      public static String getStatusString(int stat)
      #
      Parameters:
      stat - The Status as an integer
      Returns:
      The status as a String
    • getName

      public String getName()
    • setName

      public void setName(String name)