|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.daemon.AbstractServiceDaemon
public abstract class AbstractServiceDaemon
Abstract AbstractServiceDaemon class.
| Field Summary |
|---|
| Fields inherited from interface org.opennms.core.fiber.PausableFiber |
|---|
PAUSE_PENDING, PAUSED, RESUME_PENDING |
| Fields inherited from interface org.opennms.core.fiber.Fiber |
|---|
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED |
| Constructor Summary | |
|---|---|
protected |
AbstractServiceDaemon(String name)
Constructor for AbstractServiceDaemon. |
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
protected void |
debugf(String format,
Object... args)
debugf |
protected void |
debugf(Throwable t,
String format,
Object... args)
debugf |
protected void |
errorf(String format,
Object... args)
errorf |
protected void |
errorf(Throwable t,
String format,
Object... args)
errorf |
protected void |
fatalf(String format,
Object... args)
fatalf |
protected void |
fatalf(Throwable t,
String format,
Object... args)
fatalf |
String |
getName()
getName |
int |
getStatus()
getStatus |
String |
getStatusText()
getStatusText |
protected void |
infof(String format,
Object... args)
infof |
protected void |
infof(Throwable t,
String format,
Object... args)
infof |
void |
init()
init |
protected boolean |
isPaused()
isPaused |
protected boolean |
isRunning()
isRunning |
protected boolean |
isStarting()
isStarting |
protected boolean |
isStartPending()
isStartPending |
protected ThreadCategory |
log()
log |
protected abstract void |
onInit()
onInit |
protected void |
onPause()
onPause |
protected void |
onResume()
onResume |
protected void |
onStart()
onStart |
protected void |
onStop()
onStop |
void |
pause()
pause |
void |
resume()
resume |
protected void |
setStatus(int status)
setStatus |
void |
start()
start |
String |
status()
status |
void |
stop()
Stops the currently running service. |
protected void |
waitForStatus(int status)
waitForStatus |
protected void |
waitForStatus(int status,
long timeout)
waitForStatus |
protected void |
warnf(String format,
Object... args)
warnf |
protected void |
warnf(Throwable t,
String format,
Object... args)
warnf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractServiceDaemon(String name)
Constructor for AbstractServiceDaemon.
name - a String object.| Method Detail |
|---|
public final void afterPropertiesSet()
throws Exception
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - if any.protected abstract void onInit()
onInit
protected void onPause()
onPause
protected void onResume()
onResume
protected void onStart()
onStart
protected void onStop()
onStop
public final String getName()
getName
getName in interface FiberString object.protected void setStatus(int status)
setStatus
status - a int.
protected void waitForStatus(int status,
long timeout)
throws InterruptedException
waitForStatus
status - a int.timeout - a long.
InterruptedException - if any.
protected void waitForStatus(int status)
throws InterruptedException
waitForStatus
status - a int.
InterruptedException - if any.public int getStatus()
getStatus
getStatus in interface Fiberpublic String getStatusText()
getStatusText
String object.public String status()
status
status in interface ServiceDaemonString object.protected boolean isStartPending()
isStartPending
protected boolean isRunning()
isRunning
protected boolean isPaused()
isPaused
protected boolean isStarting()
isStarting
protected ThreadCategory log()
log
ThreadCategory object.
protected void fatalf(String format,
Object... args)
fatalf
format - a String object.args - a Object object.
protected void fatalf(Throwable t,
String format,
Object... args)
fatalf
t - a Throwable object.format - a String object.args - a Object object.
protected void errorf(String format,
Object... args)
errorf
format - a String object.args - a Object object.
protected void errorf(Throwable t,
String format,
Object... args)
errorf
t - a Throwable object.format - a String object.args - a Object object.
protected void warnf(String format,
Object... args)
warnf
format - a String object.args - a Object object.
protected void warnf(Throwable t,
String format,
Object... args)
warnf
t - a Throwable object.format - a String object.args - a Object object.
protected void infof(String format,
Object... args)
infof
format - a String object.args - a Object object.
protected void infof(Throwable t,
String format,
Object... args)
infof
t - a Throwable object.format - a String object.args - a Object object.
protected void debugf(String format,
Object... args)
debugf
format - a String object.args - a Object object.
protected void debugf(Throwable t,
String format,
Object... args)
debugf
t - a Throwable object.format - a String object.args - a Object object.public final void init()
init
public final void pause()
pause
pause in interface PausableFiberpublic final void resume()
resume
resume in interface PausableFiberpublic final void start()
start
start in interface Fiberstart in interface SpringServiceDaemonpublic final void stop()
stop in interface Fiber
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||