Package org.opennms.netmgt.discovery
Class Discovery
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.discovery.Discovery
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class Discovery extends AbstractServiceDaemon
This class is the main interface to the OpenNMS discovery service. The service delays the reading of configuration information until the service is started.- Author:
- Brian Weaver , OpenNMS.org
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DAEMON_NAME
protected static java.lang.String
LOG4J_CATEGORY
-
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 Discovery()
Constructs a new discovery instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getLoggingCategory()
void
handleDiscoveryConfigurationChanged(IEvent event)
handleDiscoveryConfigurationChangedvoid
handleDiscoveryPause(IEvent event)
handleDiscoveryPausevoid
handleDiscoveryResume(IEvent event)
handleDiscoveryResumeprotected void
onInit()
onInitprotected void
onPause()
onPauseprotected void
onResume()
onResumeprotected void
onStart()
onStartprotected void
onStop()
onStopvoid
reloadDaemonConfig(IEvent e)
reloadDaemonConfigvoid
setDiscoveryFactory(DiscoveryConfigFactory discoveryFactory)
void
setDiscoveryTaskExecutor(DiscoveryTaskExecutor discoveryTaskExecutor)
void
setEventForwarder(EventForwarder eventForwarder)
-
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
-
-
-
-
Field Detail
-
DAEMON_NAME
protected static final java.lang.String DAEMON_NAME
- See Also:
- Constant Field Values
-
LOG4J_CATEGORY
protected static final java.lang.String LOG4J_CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
onInit
protected void onInit() throws java.lang.IllegalStateException
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
- Throws:
java.lang.IllegalStateException
- if any.
-
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
-
handleDiscoveryConfigurationChanged
public void handleDiscoveryConfigurationChanged(IEvent event)
handleDiscoveryConfigurationChanged
- Parameters:
event
- aIEvent
object.
-
reloadDaemonConfig
public void reloadDaemonConfig(IEvent e)
reloadDaemonConfig
- Parameters:
e
- aIEvent
object.
-
handleDiscoveryResume
public void handleDiscoveryResume(IEvent event)
handleDiscoveryResume
- Parameters:
event
- aIEvent
object.
-
handleDiscoveryPause
public void handleDiscoveryPause(IEvent event)
handleDiscoveryPause
- Parameters:
event
- aIEvent
object.
-
getLoggingCategory
public static java.lang.String getLoggingCategory()
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
-
setDiscoveryFactory
public void setDiscoveryFactory(DiscoveryConfigFactory discoveryFactory)
-
setDiscoveryTaskExecutor
public void setDiscoveryTaskExecutor(DiscoveryTaskExecutor discoveryTaskExecutor)
-
-