org.hardtokenmgmt.admin.model
Class HostStatusAnalyzer

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

public class HostStatusAnalyzer
extends BaseStatusAnalyzer

Status analyzer that determines the overall status of the current host.

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

Field Summary
 
Fields inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
alarmPriority, hostname, status, statusMessage, threshold
 
Constructor Summary
protected HostStatusAnalyzer(HostInfoVO hostInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that analyzes all sub objects and sets the status to the alarm with highest priority.
 java.util.List<CAStatusAnalyzer> getCAStatus()
           
 java.util.List<PartitionStatusAnalyzer> getDiskStatus()
           
 java.util.List<GeneralStatusAnalyzer> getGeneralStatus()
           
 HostInfoVO getHostInfoVO()
           
 java.util.List<MemStatusAnalyzer> getMemStatus()
           
 java.util.List<SysCheckStatusAnalyzer> getSysCheckStatus()
           
 boolean isMonitored()
           
 void resetAnalyzis()
          Instructs the analyzer that it's time to redo it's analysing the next time the status is requested.
 void resetThreshold()
          Reset the the configured threshold to the default value.
 void setThreshold(java.lang.String threshold)
          Method that checks that either true or false is set.
 
Methods inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
getAlarmPriority, getHostname, getStatus, getStatusMessage, getThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostStatusAnalyzer

protected HostStatusAnalyzer(HostInfoVO hostInfoVO)
Method Detail

analyze

protected void analyze()
Method that analyzes all sub objects and sets the status to the alarm with highest priority.

Specified by:
analyze in class BaseStatusAnalyzer
See Also:
BaseStatusAnalyzer.analyze()

getHostInfoVO

public HostInfoVO getHostInfoVO()
Returns:
the hostInfoVO

setThreshold

public void setThreshold(java.lang.String threshold)
Method that checks that either true or false is set.

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

getGeneralStatus

public java.util.List<GeneralStatusAnalyzer> getGeneralStatus()
Returns:
the generalStatus

getDiskStatus

public java.util.List<PartitionStatusAnalyzer> getDiskStatus()
Returns:
the diskStatus

getMemStatus

public java.util.List<MemStatusAnalyzer> getMemStatus()
Returns:
the memStatus

getCAStatus

public java.util.List<CAStatusAnalyzer> getCAStatus()
Returns:
the cAStatus

getSysCheckStatus

public java.util.List<SysCheckStatusAnalyzer> getSysCheckStatus()
Returns:
the sysCheckStatus

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
See Also:
BaseStatusAnalyzer.resetThreshold()

isMonitored

public boolean isMonitored()

resetAnalyzis

public void resetAnalyzis()
Description copied from interface: IStatusAnalyzer
Instructs the analyzer that it's time to redo it's analysing the next time the status is requested.

Specified by:
resetAnalyzis in interface IStatusAnalyzer
Overrides:
resetAnalyzis in class BaseStatusAnalyzer
See Also:
BaseStatusAnalyzer.resetAnalyzis()