|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.selftests.ASelfTest
public abstract class ASelfTest
This class implements an individual self test.
Field Summary | |
---|---|
protected IConfigStore |
mConfig
|
protected java.lang.String |
mInstanceName
|
protected java.lang.String |
mPrefix
|
protected ISelfTestSubsystem |
mSelfTestSubsystem
|
Fields inherited from interface com.netscape.certsrv.selftests.ISelfTest |
---|
PROP_PLUGIN |
Constructor Summary | |
---|---|
ASelfTest()
|
Method Summary | |
---|---|
IConfigStore |
getSelfTestConfigStore()
Returns the root configuration storage (self test parameters) associated with this subsystem. |
abstract 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(ISelfTestSubsystem subsystem,
java.lang.String instanceName,
IConfigStore parameters)
Initializes this subsystem with the configuration store associated with this instance name. |
abstract void |
runSelfTest(ILogEventListener logger)
Execute an individual self test. |
abstract void |
shutdownSelfTest()
Stops this subsystem. |
abstract void |
startupSelfTest()
Notifies this subsystem if it is in execution mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ISelfTestSubsystem mSelfTestSubsystem
protected java.lang.String mInstanceName
protected IConfigStore mConfig
protected java.lang.String mPrefix
Constructor Detail |
---|
public ASelfTest()
Method Detail |
---|
public void initSelfTest(ISelfTestSubsystem subsystem, java.lang.String instanceName, IConfigStore parameters) throws EDuplicateSelfTestException, EInvalidSelfTestException, EMissingSelfTestException
initSelfTest
in interface ISelfTest
subsystem
- the associated subsysteminstanceName
- the name of this self test instanceparameters
- configuration store (self test parameters)
EDuplicateSelfTestException
- subsystem has duplicate name/value
EInvalidSelfTestException
- subsystem has invalid name/value
EMissingSelfTestException
- subsystem has missing name/valuepublic abstract void startupSelfTest() throws ESelfTestException
startupSelfTest
in interface ISelfTest
ESelfTestException
- failed to startpublic abstract void shutdownSelfTest()
shutdownSelfTest
in interface ISelfTest
public java.lang.String getSelfTestName()
getSelfTestName
in interface ISelfTest
public IConfigStore getSelfTestConfigStore()
getSelfTestConfigStore
in interface ISelfTest
public abstract java.lang.String getSelfTestDescription(java.util.Locale locale)
getSelfTestDescription
in interface ISelfTest
locale
- locale of the client that requests the description
public abstract void runSelfTest(ILogEventListener logger) throws ESelfTestException
runSelfTest
in interface ISelfTest
logger
- specifies logging subsystem
ESelfTestException
- self test exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |