org.hardtokenmgmt.admin.model
Class PartitionStatusAnalyzer

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

public class PartitionStatusAnalyzer
extends BaseStatusAnalyzer

Contains the status of of a partition VO Includes analysis of it's PartitionInfoVO

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

Field Summary
 
Fields inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
alarmPriority, hostname, status, statusMessage, threshold
 
Constructor Summary
PartitionStatusAnalyzer(java.lang.String hostname, PartitionInfoVO partitionInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that analyzes the partition info from the given partitionDataInfo
 PartitionInfoVO getPartitionInfoVO()
           
 int getUsedInPercent()
          Returns the partition used in percent.
 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

PartitionStatusAnalyzer

public PartitionStatusAnalyzer(java.lang.String hostname,
                               PartitionInfoVO partitionInfoVO)
Method Detail

getPartitionInfoVO

public PartitionInfoVO getPartitionInfoVO()
Returns:
the partitionInfoVO of the current partition.

analyze

protected void analyze()
Method that analyzes the partition info from the given partitionDataInfo

Specified by:
analyze in class BaseStatusAnalyzer

getUsedInPercent

public int getUsedInPercent()
Returns the partition 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)