|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
org.apache.excalibur.instrument.manager.http.server.AbstractLogEnabledInstrumentableStartable
abstract class AbstractLogEnabledInstrumentableStartable
| Field Summary | |
|---|---|
private java.lang.Thread |
m_runner
Reference to the worker thread. |
private boolean |
m_runnerStop
Flag set when the m_runner thread has been asked to stop. |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
|---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
|---|---|
AbstractLogEnabledInstrumentableStartable()
Creates a new AbstractLogEnabledInstrumentableStartable. |
|
| Method Summary | |
|---|---|
boolean |
isStopping()
Returns true when the component is in the process of being stopped. |
void |
run()
Run method which is responsible for launching the runner method and handling the shutdown cycle. |
protected abstract void |
runner()
Runner method that will be called when the component is started. |
void |
start()
Starts the runner thread. |
void |
stop()
Stops the runner thread, blocking until it has stopped. |
protected void |
stopRunner()
Called when the component is being stopped, the isStopping method will always return true when this method is called. |
| Methods inherited from class org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable |
|---|
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Thread m_runner
private boolean m_runnerStop
| Constructor Detail |
|---|
public AbstractLogEnabledInstrumentableStartable()
| Method Detail |
|---|
public void start()
throws java.lang.Exception
start in interface org.apache.avalon.framework.activity.Startablejava.lang.Exception - If there are any problems.
public void stop()
throws java.lang.Exception
stop in interface org.apache.avalon.framework.activity.Startablejava.lang.Exception - If there are any problems stopping the component.public void run()
run in interface java.lang.Runnable
protected void stopRunner()
throws java.lang.Exception
java.lang.Exception - If there are any problemsprotected abstract void runner()
public boolean isStopping()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||