org.hardtokenmgmt.admin.model
Class MemStatusAnalyzer

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

public class MemStatusAnalyzer
extends BaseStatusAnalyzer

Status analyzer of a memory type

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 MemStatusAnalyzer(java.lang.String hostname, MemInfoVO memInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that should analyze the objects data and set the status, statusMessage and alarmPriority variables.
 MemInfoVO getMemInfoVO()
           
 int getUsedInPercent()
          Returns the mem used in percent.
 void setMemInfoVO(MemInfoVO memInfoVO)
           
 void setThreshold(java.lang.String threshold)
          Check so the threshold is between 1 and 100
 
Methods inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
getAlarmPriority, getHostname, getStatus, getStatusMessage, getThreshold, resetAnalyzis, resetThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemStatusAnalyzer

protected MemStatusAnalyzer(java.lang.String hostname,
                            MemInfoVO memInfoVO)
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
See Also:
BaseStatusAnalyzer.analyze()

setMemInfoVO

public void setMemInfoVO(MemInfoVO memInfoVO)
Parameters:
memInfoVO - the memInfoVO to set

getMemInfoVO

public MemInfoVO getMemInfoVO()
Returns:
the memInfoVO

getUsedInPercent

public int getUsedInPercent()
Returns the mem used in percent.


setThreshold

public void setThreshold(java.lang.String threshold)
Check so the threshold is between 1 and 100

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