org.hardtokenmgmt.admin.model
Class CAStatusAnalyzer

java.lang.Object
  extended by org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
      extended by org.hardtokenmgmt.admin.model.CAStatusAnalyzer
All Implemented Interfaces:
java.lang.Comparable<CAStatusAnalyzer>, IStatusAnalyzer

public class CAStatusAnalyzer
extends BaseStatusAnalyzer
implements java.lang.Comparable<CAStatusAnalyzer>

Class in charge of analyzing the data of a CA Info VO

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

Field Summary
 
Fields inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
alarmPriority, hostname, status, statusMessage, threshold
 
Constructor Summary
CAStatusAnalyzer(java.lang.String hostname, CAInfoVO cAInfoVO)
           
 
Method Summary
protected  void analyze()
          Method that should analyze the objects data and set the status, statusMessage and alarmPriority variables.
 int compareTo(CAStatusAnalyzer o)
           
 java.security.cert.X509Certificate getCACertificate()
           
 java.util.List<java.security.cert.X509Certificate> getCACertificateChain()
           
 CAInfoVO getCAInfoVO()
           
 java.lang.String getIssuer()
           
 java.lang.String getSubject()
           
 java.lang.String getThreshold()
           
 boolean isMonitored()
           
 void resetThreshold()
          Reset the the configured threshold to the default value.
 void setThreshold(java.lang.String threshold)
          Checks that the string is boolean.
 
Methods inherited from class org.hardtokenmgmt.admin.model.BaseStatusAnalyzer
getAlarmPriority, getHostname, getStatus, getStatusMessage, resetAnalyzis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAStatusAnalyzer

public CAStatusAnalyzer(java.lang.String hostname,
                        CAInfoVO cAInfoVO)
Method Detail

getCAInfoVO

public CAInfoVO getCAInfoVO()
Returns:
the current CAInfoVO

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()

getThreshold

public java.lang.String getThreshold()
Specified by:
getThreshold in interface IStatusAnalyzer
Overrides:
getThreshold in class BaseStatusAnalyzer
Returns:
the threshold
See Also:
BaseStatusAnalyzer.getThreshold()

setThreshold

public void setThreshold(java.lang.String threshold)
Checks that the string is boolean.

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

isMonitored

public boolean isMonitored()

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

getCACertificate

public java.security.cert.X509Certificate getCACertificate()

getCACertificateChain

public java.util.List<java.security.cert.X509Certificate> getCACertificateChain()

getSubject

public java.lang.String getSubject()

getIssuer

public java.lang.String getIssuer()

compareTo

public int compareTo(CAStatusAnalyzer o)
Specified by:
compareTo in interface java.lang.Comparable<CAStatusAnalyzer>