Package com.netscape.certsrv.base
Class BaseSubsystem
- java.lang.Object
-
- com.netscape.certsrv.base.BaseSubsystem
-
- All Implemented Interfaces:
ISubsystem
public abstract class BaseSubsystem extends java.lang.Object implements ISubsystem
This class represents a basic subsystem. Each basic subsystem is named with an identifier and has a configuration store.- Version:
- $Revision$, $Date$
-
-
Constructor Summary
Constructors Constructor Description BaseSubsystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigStoregetConfigStore()Retrieves the configuration store.java.lang.StringgetId()Retrieves the subsystem identifier.voidinit(IConfigStore config)Initializes this subsystem.voidsetId(java.lang.String id)Sets the identifier of this subsystem.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.base.ISubsystem
shutdown, startup
-
-
-
-
Method Detail
-
init
public void init(IConfigStore config) throws EBaseException
Initializes this subsystem.- Specified by:
initin interfaceISubsystem- Parameters:
config- configuration store- Throws:
EBaseException- failed to initialize
-
getConfigStore
public IConfigStore getConfigStore()
Retrieves the configuration store.- Specified by:
getConfigStorein interfaceISubsystem- Returns:
- configuration store
-
setId
public void setId(java.lang.String id) throws EBaseExceptionSets the identifier of this subsystem.- Specified by:
setIdin interfaceISubsystem- Parameters:
id- subsystem identifier- Throws:
EBaseException- failed to set id
-
getId
public java.lang.String getId()
Retrieves the subsystem identifier.- Specified by:
getIdin interfaceISubsystem- Returns:
- subsystem identifier
-
-