org.hardtokenmgmt.admin.model
Class MemStatusAnalyzer
java.lang.Object
org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemStatusAnalyzer
protected MemStatusAnalyzer(java.lang.String hostname,
MemInfoVO memInfoVO)
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)