|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.service.Service
org.exolab.jms.service.BasicService
public abstract class BasicService
BasicService
is a service implementation that will run the
service in a separate thread. Derived class must define an implementation for
the 'run' method.
Service
Constructor Summary | |
---|---|
BasicService()
Construct a new BasicService with no name. |
|
BasicService(java.lang.String name)
Construct a new BasicService , specifying its name. |
Method Summary | |
---|---|
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
java.lang.String |
toString()
Return the state of the object as a string. |
Methods inherited from class org.exolab.jms.service.Service |
---|
getName, isStarted, restart, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Constructor Detail |
---|
public BasicService()
BasicService
with no name.
public BasicService(java.lang.String name)
BasicService
, specifying its name.
name
- the name of the serviceMethod Detail |
---|
public java.lang.String toString()
toString
in class Service
protected void doStart() throws ServiceException
doStart
in class Service
ServiceException
- if the service fails to startprotected void doStop() throws ServiceException
doStop
in class Service
ServiceException
- if the service fails to stop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |