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