org.opennms.netmgt.vacuumd
Class Vacuumd

java.lang.Object
  extended by org.opennms.netmgt.daemon.AbstractServiceDaemon
      extended by org.opennms.netmgt.vacuumd.Vacuumd
All Implemented Interfaces:
Runnable, Fiber, PausableFiber, SpringServiceDaemon, EventListener, ServiceDaemon, org.springframework.beans.factory.InitializingBean

public class Vacuumd
extends AbstractServiceDaemon
implements 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
static String RELOAD_CONFIG_UEI
           
 
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
protected  void executeStatements()
           
 EventIpcManager getEventManager()
           
 Scheduler getScheduler()
           
static Vacuumd getSingleton()
           
 void onEvent(Event event)
           
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
 void run()
           
 void setEventManager(EventIpcManager eventMgr)
           
 
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, debugf, debugf, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
 
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.model.events.EventListener
getName
 

Field Detail

RELOAD_CONFIG_UEI

public static final String RELOAD_CONFIG_UEI
See Also:
Constant Field Values
Constructor Detail

Vacuumd

public Vacuumd()
Method Detail

getSingleton

public static Vacuumd getSingleton()

onInit

protected void onInit()
Specified by:
onInit in class AbstractServiceDaemon

onStart

protected void onStart()
Overrides:
onStart in class AbstractServiceDaemon

onStop

protected void onStop()
Overrides:
onStop in class AbstractServiceDaemon

onPause

protected void onPause()
Overrides:
onPause in class AbstractServiceDaemon

onResume

protected void onResume()
Overrides:
onResume in class AbstractServiceDaemon

run

public void run()
Specified by:
run in interface Runnable

executeStatements

protected void executeStatements()

getScheduler

public Scheduler getScheduler()

getEventManager

public EventIpcManager getEventManager()

setEventManager

public void setEventManager(EventIpcManager eventMgr)

onEvent

public void onEvent(Event event)
Specified by:
onEvent in interface EventListener


Copyright © 2009. All Rights Reserved.