Package PamController.status
Class ModuleStatus
java.lang.Object
PamController.status.ModuleStatus
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intPut 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.static final int - 
Constructor Summary
ConstructorsConstructorDescriptionModuleStatus(int status) ModuleStatus(int status, String message) ModuleStatus(int status, String message, RemedialAction remedialAction)  - 
Method Summary
Modifier and TypeMethodDescriptiongetName()intstatic StringgetStatusString(int stat) #voidsetMessage(String message) voidvoidsetRemedialAction(RemedialAction remedialAction) voidsetStatus(int status) toString() 
- 
Field Details
- 
STATUS_OK
public static final int STATUS_OKPut 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
- Parameters:
 status-message-
 - 
ModuleStatus
public ModuleStatus(int status) - Parameters:
 status-
 - 
ModuleStatus
- Parameters:
 status-message-remedialAction-
 
 - 
 - 
Method Details
- 
toString
 - 
getStatus
public int getStatus()- Returns:
 - the status
 
 - 
setStatus
public void setStatus(int status) - Parameters:
 status- the status to set
 - 
getMessage
- Returns:
 - the message
 
 - 
setMessage
- Parameters:
 message- the message to set
 - 
getRemedialAction
- Returns:
 - the remedialAction
 
 - 
setRemedialAction
- Parameters:
 remedialAction- the remedialAction to set
 - 
getStatusString
- Returns:
 - The status as a string
 
 - 
getStatusString
#- Parameters:
 stat- The Status as an integer- Returns:
 - The status as a String
 
 - 
getName
 - 
setName
 
 -