org.opennms.netmgt.discovery
Class Discovery

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

public class Discovery
extends AbstractServiceDaemon

This class is the main interface to the OpenNMS discovery service. The class implements the singleton design pattern, in that there is only one instance in any given virtual machine. The service delays the reading of configuration information until the service is started.

Author:
Brian Weaver , OpenNMS.org

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
 
Method Summary
protected  void doPings()
           
static Discovery getInstance()
          Returns the singular instance of the discovery process
 void handleDiscoveryConfigurationChanged(Event event)
           
 void handleDiscoveryPause(Event event)
           
 void handleDiscoveryResume(Event event)
           
 void handleInterfaceDeleted(Event event)
           
 void handleNodeGainedInterface(Event event)
           
protected  void onInit()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onStart()
           
protected  void onStop()
           
protected  void syncAlreadyDiscovered()
           
 
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
 

Method Detail

onInit

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

doPings

protected void doPings()

getInstance

public static Discovery getInstance()
Returns the singular instance of the discovery process


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

syncAlreadyDiscovered

protected void syncAlreadyDiscovered()

handleDiscoveryConfigurationChanged

public void handleDiscoveryConfigurationChanged(Event event)

handleInterfaceDeleted

public void handleInterfaceDeleted(Event event)

handleDiscoveryResume

public void handleDiscoveryResume(Event event)

handleDiscoveryPause

public void handleDiscoveryPause(Event event)

handleNodeGainedInterface

public void handleNodeGainedInterface(Event event)


Copyright © 2009. All Rights Reserved.