org.hardtokenmgmt.admin.model
Class SysCheckStatusAnalyzer

java.lang.Object
  extended by org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
      extended by org.hardtokenmgmt.admin.model.SysCheckStatusAnalyzer
All Implemented Interfaces:
java.lang.Comparable<SysCheckStatusAnalyzer>, IStatusAnalyzer

public class SysCheckStatusAnalyzer
extends BaseStatusAnalyzer
implements java.lang.Comparable<SysCheckStatusAnalyzer>

Version:
$Id$
Author:
Philip Vendil 25 mar 2009

Field Summary
 
Fields inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
alarmPriority, hostname, status, statusMessage, threshold
 
Constructor Summary
SysCheckStatusAnalyzer(java.lang.String hostname, SysCheckInfoVO sysCheckInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that should analyze the objects data and set the status, statusMessage and alarmPriority variables.
 int compareTo(SysCheckStatusAnalyzer o)
           
 java.lang.String getDate()
           
 java.lang.String getErrorNo()
           
 java.lang.String getMessage()
           
 java.lang.String getScriptID()
          Returns the two letter script id.
 java.lang.String getThreshold()
           
 boolean isMonitored()
           
 void resetThreshold()
          Reset the the configured threshold to the default value.
 void setThreshold(java.lang.String threshold)
          Checks that the string is boolean.
 
Methods inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
getAlarmPriority, getHostname, getStatus, getStatusMessage, resetAnalyzis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysCheckStatusAnalyzer

public SysCheckStatusAnalyzer(java.lang.String hostname,
                              SysCheckInfoVO sysCheckInfoVO)
Method Detail

analyze

protected void analyze()
Description copied from class: BaseStatusAnalyzer
Method that should analyze the objects data and set the status, statusMessage and alarmPriority variables.

Specified by:
analyze in class BaseStatusAnalyzer

getScriptID

public java.lang.String getScriptID()
Returns the two letter script id.


getErrorNo

public java.lang.String getErrorNo()

getMessage

public java.lang.String getMessage()

getDate

public java.lang.String getDate()

getThreshold

public java.lang.String getThreshold()
Specified by:
getThreshold in interface IStatusAnalyzer
Overrides:
getThreshold in class BaseStatusAnalyzer
Returns:
the threshold
See Also:
BaseStatusAnalyzer.getThreshold()

setThreshold

public void setThreshold(java.lang.String threshold)
Checks that the string is boolean.

Specified by:
setThreshold in interface IStatusAnalyzer
Overrides:
setThreshold in class BaseStatusAnalyzer
Parameters:
threshold - the threshold to set
See Also:
BaseStatusAnalyzer.setThreshold(java.lang.String)

isMonitored

public boolean isMonitored()

resetThreshold

public void resetThreshold()
Description copied from interface: IStatusAnalyzer
Reset the the configured threshold to the default value.

Specified by:
resetThreshold in interface IStatusAnalyzer
Overrides:
resetThreshold in class BaseStatusAnalyzer

compareTo

public int compareTo(SysCheckStatusAnalyzer o)
Specified by:
compareTo in interface java.lang.Comparable<SysCheckStatusAnalyzer>