org.opennms.netmgt.discovery
Class Discovery
java.lang.Object
org.opennms.netmgt.daemon.AbstractServiceDaemon
org.opennms.netmgt.discovery.Discovery
- All Implemented Interfaces:
- org.opennms.core.fiber.Fiber, org.opennms.core.fiber.PausableFiber, SpringServiceDaemon, EventListener, org.opennms.netmgt.model.ServiceDaemon, org.springframework.beans.factory.InitializingBean
public final class Discovery
- extends AbstractServiceDaemon
- implements EventListener
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
| 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 |
onEvent(org.opennms.netmgt.xml.event.Event event)
Process a sent event. |
protected void |
onInit()
|
protected void |
onPause()
|
protected void |
onResume()
|
protected void |
onStart()
|
protected void |
onStop()
|
protected void |
pingAddress(java.net.InetAddress address,
long timeout,
int retries,
org.opennms.netmgt.ping.PingResponseCallback cb)
|
| Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon |
afterPropertiesSet, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, isStartPending, log, 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 |
onInit
protected void onInit()
- Specified by:
onInit in class AbstractServiceDaemon
doPings
protected void doPings()
pingAddress
protected void pingAddress(java.net.InetAddress address,
long timeout,
int retries,
org.opennms.netmgt.ping.PingResponseCallback cb)
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
onEvent
public void onEvent(org.opennms.netmgt.xml.event.Event event)
- Description copied from interface:
EventListener
- Process a sent event.
- Specified by:
onEvent in interface EventListener
Copyright © 2007. All Rights Reserved.