Package org.opennms.netmgt.vacuumd
Class Vacuumd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.vacuumd.Vacuumd
-
- All Implemented Interfaces:
java.lang.Runnable
,Fiber
,PausableFiber
,SpringServiceDaemon
,EventListener
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class Vacuumd extends AbstractServiceDaemon implements java.lang.Runnable, EventListener
Implements a daemon whose job it is to run periodic updates against the database for database maintenance work.- Author:
- Mathew Brozowski, David Hustace, DJ Gregor
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
-
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
-
-
Constructor Summary
Constructors Constructor Description Vacuumd()
Constructor for Vacuumd.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
destroySingleton()
protected void
executeStatements()
executeStatementsEventIpcManager
getEventManager()
getEventManagerlong
getNumAutomations()
Returns the number of automations that have been executed so far.Scheduler
getScheduler()
getSchedulerstatic Vacuumd
getSingleton()
getSingletonvoid
onEvent(IEvent event)
Process a sent event.protected void
onInit()
onInitprotected void
onPause()
onPauseprotected void
onResume()
onResumeprotected void
onStart()
onStartprotected void
onStop()
onStopvoid
run()
runvoid
setEventManager(EventIpcManager eventMgr)
setEventManager-
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.events.api.EventListener
getName
-
-
-
-
Method Detail
-
destroySingleton
public static void destroySingleton()
-
onInit
protected void onInit()
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
-
onStart
protected void onStart()
onStart
- Overrides:
onStart
in classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStop
in classAbstractServiceDaemon
-
onPause
protected void onPause()
onPause
- Overrides:
onPause
in classAbstractServiceDaemon
-
onResume
protected void onResume()
onResume
- Overrides:
onResume
in classAbstractServiceDaemon
-
run
public void run()
run
- Specified by:
run
in interfacejava.lang.Runnable
-
executeStatements
protected void executeStatements()
executeStatements
-
getEventManager
public EventIpcManager getEventManager()
getEventManager
- Returns:
- a
EventIpcManager
object.
-
setEventManager
public void setEventManager(EventIpcManager eventMgr)
setEventManager
- Parameters:
eventMgr
- aEventIpcManager
object.
-
onEvent
public void onEvent(IEvent event)
Process a sent event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- aIEvent
object.
-
getNumAutomations
public long getNumAutomations()
Returns the number of automations that have been executed so far.- Returns:
- the number of automations that have been executed
-
-