Class ASelfTest
java.lang.Object
com.netscape.cms.selftests.ASelfTest
- All Implemented Interfaces:
ISelfTest
- Direct Known Subclasses:
SystemCertsVerification
This class implements an individual self test.
- Version:
- $Revision$, $Date$
- Author:
- mharmsen, thomask
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IConfigStoreprotected Stringprotected Stringprotected ISelfTestSubsystemFields inherited from interface com.netscape.certsrv.selftests.ISelfTest
PROP_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the root configuration storage (self test parameters) associated with this subsystem.abstract StringgetSelfTestDescription(Locale locale) Retrieves description associated with an individual self test.Returns the name associated with this self test.voidinitSelfTest(ISelfTestSubsystem subsystem, String instanceName, IConfigStore parameters) Initializes this subsystem with the configuration store associated with this instance name.abstract voidrunSelfTest(ILogEventListener logger) Execute an individual self test.abstract voidStops this subsystem.abstract voidNotifies this subsystem if it is in execution mode.
-
Field Details
-
mSelfTestSubsystem
-
mInstanceName
-
mConfig
-
mPrefix
-
-
Constructor Details
-
ASelfTest
public ASelfTest()
-
-
Method Details
-
initSelfTest
public void initSelfTest(ISelfTestSubsystem subsystem, String instanceName, IConfigStore parameters) throws EDuplicateSelfTestException, EInvalidSelfTestException, EMissingSelfTestException Initializes this subsystem with the configuration store associated with this instance name.- Specified by:
initSelfTestin interfaceISelfTest- Parameters:
subsystem- the associated subsysteminstanceName- the name of this self test instanceparameters- configuration store (self test parameters)- Throws:
EDuplicateSelfTestException- subsystem has duplicate name/valueEInvalidSelfTestException- subsystem has invalid name/valueEMissingSelfTestException- subsystem has missing name/value
-
startupSelfTest
Notifies this subsystem if it is in execution mode.- Specified by:
startupSelfTestin interfaceISelfTest- Throws:
ESelfTestException- failed to start
-
shutdownSelfTest
public abstract void shutdownSelfTest()Stops this subsystem. The subsystem may call shutdownSelfTest anytime after initialization.- Specified by:
shutdownSelfTestin interfaceISelfTest
-
getSelfTestName
Returns the name associated with this self test. This method may return null if the self test has not been intialized.- Specified by:
getSelfTestNamein interfaceISelfTest- Returns:
- instanceName of this self test
-
getSelfTestConfigStore
Returns the root configuration storage (self test parameters) associated with this subsystem.- Specified by:
getSelfTestConfigStorein interfaceISelfTest- Returns:
- configuration store (self test parameters) of this subsystem
-
getSelfTestDescription
Retrieves description associated with an individual self test. This method may return null.- Specified by:
getSelfTestDescriptionin interfaceISelfTest- Parameters:
locale- locale of the client that requests the description- Returns:
- description of self test
-
runSelfTest
Execute an individual self test.- Specified by:
runSelfTestin interfaceISelfTest- Parameters:
logger- specifies logging subsystem- Throws:
Exception- self test exception
-