org.hardtokenmgmt.admin.model
Class GeneralStatusAnalyzer

java.lang.Object
  extended by org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
      extended by org.hardtokenmgmt.admin.model.GeneralStatusAnalyzer
All Implemented Interfaces:
IStatusAnalyzer

public class GeneralStatusAnalyzer
extends BaseStatusAnalyzer

Class used to analyze the status of a general information object

Version:
$Id$
Author:
Philip Vendil 22 feb 2009

Field Summary
 
Fields inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
alarmPriority, hostname, status, statusMessage, threshold
 
Constructor Summary
GeneralStatusAnalyzer(java.lang.String hostname, GeneralInfoVO generalInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that should analyze the objects data and set the status, statusMessage and alarmPriority variables.
 GeneralInfoVO getGeneralInfoVO()
           
 java.lang.String getHostname()
           
 void resetThreshold()
          Reset the the configured threshold to the default value.
 void setThreshold(java.lang.String threshold)
          Method that only sets threshold, if the current GeneralInfoVO supports it.
 
Methods inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
getAlarmPriority, getStatus, getStatusMessage, getThreshold, resetAnalyzis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralStatusAnalyzer

public GeneralStatusAnalyzer(java.lang.String hostname,
                             GeneralInfoVO generalInfoVO)
Method Detail

getHostname

public java.lang.String getHostname()
Specified by:
getHostname in interface IStatusAnalyzer
Overrides:
getHostname in class BaseStatusAnalyzer
Returns:
the hostname the current analyzer belongs to.
See Also:
IStatusAnalyzer.getHostname()

getGeneralInfoVO

public GeneralInfoVO getGeneralInfoVO()
Returns:
the generalInfoVO

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

setThreshold

public void setThreshold(java.lang.String threshold)
Method that only sets threshold, if the current GeneralInfoVO supports it.

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

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