Package com.netscape.cms.selftests.kra
Class KRAPresence
- java.lang.Object
-
- com.netscape.cms.selftests.ASelfTest
-
- com.netscape.cms.selftests.kra.KRAPresence
-
- All Implemented Interfaces:
com.netscape.certsrv.selftests.ISelfTest
public class KRAPresence extends ASelfTest
This class implements a self test to check for KRA presence.- Version:
- $Revision$, $Date$
- Author:
- mharmsen, thomask
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_KRA_SUB_ID
-
Fields inherited from class com.netscape.cms.selftests.ASelfTest
mConfig, mInstanceName, mPrefix, mSelfTestSubsystem
-
-
Constructor Summary
Constructors Constructor Description KRAPresence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigStore
getSelfTestConfigStore()
Returns the root configuration storage (self test parameters) associated with this subsystem.java.lang.String
getSelfTestDescription(java.util.Locale locale)
Retrieves description associated with an individual self test.java.lang.String
getSelfTestName()
Returns the name associated with this self test.void
initSelfTest(com.netscape.certsrv.selftests.ISelfTestSubsystem subsystem, java.lang.String instanceName, IConfigStore parameters)
Initializes this subsystem with the configuration store associated with this instance name.void
runSelfTest(com.netscape.certsrv.logging.ILogEventListener logger)
Execute an individual self test.void
shutdownSelfTest()
Stops this subsystem.void
startupSelfTest()
Notifies this subsystem if it is in execution mode.
-
-
-
Field Detail
-
PROP_KRA_SUB_ID
public static final java.lang.String PROP_KRA_SUB_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
initSelfTest
public void initSelfTest(com.netscape.certsrv.selftests.ISelfTestSubsystem subsystem, java.lang.String instanceName, IConfigStore parameters) throws com.netscape.certsrv.selftests.EDuplicateSelfTestException, com.netscape.certsrv.selftests.EInvalidSelfTestException, com.netscape.certsrv.selftests.EMissingSelfTestException
Initializes this subsystem with the configuration store associated with this instance name.- Specified by:
initSelfTest
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Overrides:
initSelfTest
in classASelfTest
- Parameters:
subsystem
- the associated subsysteminstanceName
- the name of this self test instanceparameters
- configuration store (self test parameters)- Throws:
com.netscape.certsrv.selftests.EDuplicateSelfTestException
- subsystem has duplicate name/valuecom.netscape.certsrv.selftests.EInvalidSelfTestException
- subsystem has invalid name/valuecom.netscape.certsrv.selftests.EMissingSelfTestException
- subsystem has missing name/value
-
startupSelfTest
public void startupSelfTest() throws com.netscape.certsrv.selftests.ESelfTestException
Notifies this subsystem if it is in execution mode.- Specified by:
startupSelfTest
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Specified by:
startupSelfTest
in classASelfTest
- Throws:
com.netscape.certsrv.selftests.ESelfTestException
- failed to start
-
shutdownSelfTest
public void shutdownSelfTest()
Stops this subsystem. The subsystem may call shutdownSelfTest anytime after initialization.- Specified by:
shutdownSelfTest
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Specified by:
shutdownSelfTest
in classASelfTest
-
getSelfTestName
public java.lang.String getSelfTestName()
Returns the name associated with this self test. This method may return null if the self test has not been intialized.- Specified by:
getSelfTestName
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Overrides:
getSelfTestName
in classASelfTest
- Returns:
- instanceName of this self test
-
getSelfTestConfigStore
public IConfigStore getSelfTestConfigStore()
Returns the root configuration storage (self test parameters) associated with this subsystem.- Specified by:
getSelfTestConfigStore
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Overrides:
getSelfTestConfigStore
in classASelfTest
- Returns:
- configuration store (self test parameters) of this subsystem
-
getSelfTestDescription
public java.lang.String getSelfTestDescription(java.util.Locale locale)
Retrieves description associated with an individual self test. This method may return null.- Specified by:
getSelfTestDescription
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Specified by:
getSelfTestDescription
in classASelfTest
- Parameters:
locale
- locale of the client that requests the description- Returns:
- description of self test
-
runSelfTest
public void runSelfTest(com.netscape.certsrv.logging.ILogEventListener logger) throws java.lang.Exception
Execute an individual self test.- Specified by:
runSelfTest
in interfacecom.netscape.certsrv.selftests.ISelfTest
- Specified by:
runSelfTest
in classASelfTest
- Parameters:
logger
- specifies logging subsystem- Throws:
java.lang.Exception
- self test exception
-
-