org.hardtokenmgmt.admin.model
Interface IStatusAnalyzer

All Known Implementing Classes:
BaseStatusAnalyzer, CAStatusAnalyzer, GeneralStatusAnalyzer, HostStatusAnalyzer, MemStatusAnalyzer, PartitionStatusAnalyzer, SysCheckStatusAnalyzer

public interface IStatusAnalyzer

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

Method Summary
 int getAlarmPriority()
          Alarm priority determines which event that should have the highest priority when something is wrong.
 java.lang.String getHostname()
           
 java.lang.String getStatus()
          The status of the current partition.
 java.lang.String getStatusMessage()
           
 java.lang.String getThreshold()
           
 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 Detail

getStatus

java.lang.String getStatus()
The status of the current partition.

Returns:
one of Constants.STATUS_ constants

getStatusMessage

java.lang.String getStatusMessage()

getThreshold

java.lang.String getThreshold()
Returns:
the threshold

setThreshold

void setThreshold(java.lang.String threshold)
Parameters:
threshold - the threshold to set

getHostname

java.lang.String getHostname()
Returns:
the hostname the current analyzer belongs to.

getAlarmPriority

int getAlarmPriority()
Alarm priority determines which event that should have the highest priority when something is wrong. I.e shown first in overall status bar. Should return a value between 0 and 299 where 0 is the lowest
  • 0 - 99 is information level
  • 100 - 199 is warning level
  • 200 - 299 is error level


  • resetThreshold

    void resetThreshold()
    Reset the the configured threshold to the default value.


    resetAnalyzis

    void resetAnalyzis()
    Instructs the analyzer that it's time to redo it's analysing the next time the status is requested.