|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.vacuumd.Vacuumd
Implements a daemon whose job it is to run periodic updates against the database for database maintenance work.
| Field Summary | |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements. |
private static Vacuumd |
m_singleton
|
private long |
m_startTime
|
private int |
m_status
|
private boolean |
m_stopped
|
private java.lang.Thread |
m_thread
|
| 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 | |
Vacuumd()
|
|
| Method Summary | |
java.lang.String |
getName()
This method is used to return the name of the Fiber. |
static Vacuumd |
getSingleton()
|
int |
getStatus()
This method is used to get the current status of the Fiber. |
void |
init()
|
void |
pause()
This method is used to suspend a currently running Fiber |
void |
resume()
This method is used to resume a suspeneded Fiber. |
void |
run()
|
void |
runUpdate(java.lang.String sql)
|
void |
start()
This method is used to start the initilization process of the Fiber, which should eventually transition
to a RUNNING status. |
void |
stop()
This method is used to stop a currently running Fiber. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private static Vacuumd m_singleton
private java.lang.Thread m_thread
private long m_startTime
private boolean m_stopped
private int m_status
| Constructor Detail |
public Vacuumd()
| Method Detail |
public static Vacuumd getSingleton()
public void init()
public void start()
FiberFiber, which should eventually transition
to a RUNNING status.
start in interface Fiberpublic void stop()
FiberFiber.
Once invoked the Fiber should begin it's shutdown
process. Depending on the implementation, this method may block
until the Fiber terminates.
stop in interface Fiberpublic void pause()
PausableFiberFiber.
When invoked the Fiber will begin the transition to
a PAUSED status after changing its internal state, if
applicable.
- Specified by:
pause in interface PausableFiber
public void resume()
PausableFiberFiber.
If the thread is already running then this method should have
no effect on the current Fiber.
resume in interface PausableFiberpublic java.lang.String getName()
FiberFiber.
The name of the instance is defined by the implementor, but it
should be realitively unique when possible.
getName in interface FiberFiber.public int getStatus()
FiberFiber.
The status of the fiber should be one of the predefined constants
of the Fiber interface, or from one of the derived
interfaces.
getStatus in interface FiberFiber.public void run()
run in interface java.lang.Runnablepublic void runUpdate(java.lang.String sql)
|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||