Package com.netscape.certsrv.base
Class BaseSubsystem
- java.lang.Object
-
- com.netscape.certsrv.base.BaseSubsystem
-
- All Implemented Interfaces:
ISubsystem
- Direct Known Subclasses:
UGSubsystem
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 IConfigStore
getConfigStore()
Retrieves the configuration store.java.lang.String
getId()
Retrieves the subsystem identifier.void
init(IConfigStore config)
Initializes this subsystem.void
setId(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:
init
in interfaceISubsystem
- Parameters:
config
- configuration store- Throws:
EBaseException
- failed to initialize
-
getConfigStore
public IConfigStore getConfigStore()
Retrieves the configuration store.- Specified by:
getConfigStore
in interfaceISubsystem
- Returns:
- configuration store
-
setId
public void setId(java.lang.String id) throws EBaseException
Sets the identifier of this subsystem.- Specified by:
setId
in interfaceISubsystem
- Parameters:
id
- subsystem identifier- Throws:
EBaseException
- failed to set id
-
getId
public java.lang.String getId()
Retrieves the subsystem identifier.- Specified by:
getId
in interfaceISubsystem
- Returns:
- subsystem identifier
-
-