|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.are.service.BaseSingletonService
public abstract class BaseSingletonService
The BaseSingletonService
class is an abstract base class that implements some basic behavior
required for a BaseSingletonService
in the Application Runtime Expert. This class provides
the following set of implemented features available for use by any sub-class:
InvalidServiceStateException
being thrown.
This base class is a nice starting point for creating singleton services for the Application Runtime Expert.
However, it is perfectly acceptable to create a singleton service that directly implements the
SingletonService
interface and not extend this class at all.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright for class bytecode |
protected ServiceData |
serviceData
Data specific to this service |
Constructor Summary | |
---|---|
BaseSingletonService()
|
Method Summary | |
---|---|
com.ibm.are.core.ElementData |
getElementData()
|
void |
setElementData(com.ibm.are.core.ElementData newData)
|
void |
start(java.util.List startArgs)
Starts the service. |
protected abstract void |
startImpl(java.util.List startArgs)
|
void |
stop(java.util.List stopArgs)
Stops the service. |
protected abstract void |
stopImpl(java.util.List stopArgs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.are.core.Element |
---|
getCommonName, getDescription, getVersion |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected ServiceData serviceData
Constructor Detail |
---|
public BaseSingletonService()
Method Detail |
---|
public final void start(java.util.List startArgs)
start
in interface Service
startArgs
- Start arguments. Currently the runtime does not pass
any arguments upon starting a service, so this list will
always be empty.public final void stop(java.util.List stopArgs)
stop
in interface Service
stopArgs
- Stop arguments. Currently the runtime does not pass
any arguments upon stopping a service, so this list will
always be empty.public com.ibm.are.core.ElementData getElementData()
getElementData
in interface com.ibm.are.core.Element
public void setElementData(com.ibm.are.core.ElementData newData)
setElementData
in interface com.ibm.are.core.Element
protected abstract void startImpl(java.util.List startArgs)
protected abstract void stopImpl(java.util.List stopArgs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |