Class SnmpPoller
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.snmpinterfacepoller.SnmpPoller
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class SnmpPoller extends AbstractServiceDaemon
SnmpPoller daemon class- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
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 SnmpPoller()
Constructor for SnmpPoller.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteInterfaceHaldler(IEvent event)
deleteInterfaceHaldlerstatic SnmpPoller
getInstance()
getInstancePollableNetwork
getNetwork()
getNetworkSnmpInterfacePollerConfig
getPollerConfig()
getPollerConfigScheduler
getScheduler()
getSchedulervoid
interfaceDownHandler(IEvent event)
interfaceDownHandlervoid
interfaceUpHandler(IEvent event)
interfaceUpHandlerboolean
isInitialized()
isInitializedvoid
nodeDeletedHandler(IEvent event)
nodeDeletedHandlervoid
nodeDownHandler(IEvent event)
nodeDownHandlervoid
nodeUpHandler(IEvent event)
nodeUpHandlerprotected void
onInit()
onInitprotected void
onPause()
onPauseprotected void
onResume()
onResumeprotected void
onStart()
onStartprotected void
onStop()
onStopvoid
primarychangeHandler(IEvent event)
primarychangeHandlervoid
reloadConfig(IEvent event)
reloadConfigvoid
reloadSnmpConfig(IEvent event)
reloadSnmpConfigvoid
rescanCompletedHaldler(IEvent event)
rescanCompletedHaldlervoid
scanCompletedHaldler(IEvent event)
scanCompletedHaldlerprotected void
scheduleExistingSnmpInterface()
scheduleExistingSnmpInterfaceprotected void
scheduleNewSnmpInterface(String ipaddr)
scheduleNewSnmpInterfaceprotected void
schedulePollableInterface(OnmsIpInterface iface)
schedulePollableInterfacevoid
serviceDownHandler(IEvent event)
serviceDownHandlervoid
serviceGainedHandler(IEvent event)
serviceGainedHandlervoid
serviceUpHandler(IEvent event)
serviceUpHandlervoid
setNetwork(PollableNetwork pollableNetwork)
setNetworkvoid
setPollerConfig(SnmpInterfacePollerConfig snmpinterfacepollerConfig)
setPollerConfigvoid
setScheduler(LegacyScheduler scheduler)
setScheduler-
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
-
-
-
-
Method Detail
-
getNetwork
public PollableNetwork getNetwork()
getNetwork
- Returns:
- a
PollableNetwork
object.
-
setNetwork
public void setNetwork(PollableNetwork pollableNetwork)
setNetwork
- Parameters:
pollableNetwork
- aPollableNetwork
object.
-
isInitialized
public boolean isInitialized()
isInitialized
- Returns:
- a boolean.
-
setScheduler
public void setScheduler(LegacyScheduler scheduler)
setScheduler
- Parameters:
scheduler
- aLegacyScheduler
object.
-
getPollerConfig
public SnmpInterfacePollerConfig getPollerConfig()
getPollerConfig
- Returns:
- a
SnmpInterfacePollerConfig
object.
-
setPollerConfig
public void setPollerConfig(SnmpInterfacePollerConfig snmpinterfacepollerConfig)
setPollerConfig
- Parameters:
snmpinterfacepollerConfig
- aSnmpInterfacePollerConfig
object.
-
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
-
getInstance
public static SnmpPoller getInstance()
getInstance
- Returns:
- a
SnmpPoller
object.
-
onInit
protected void onInit()
onInit
- Specified by:
onInit
in classAbstractServiceDaemon
-
scheduleNewSnmpInterface
protected void scheduleNewSnmpInterface(String ipaddr)
scheduleNewSnmpInterface
- Parameters:
ipaddr
- aString
object.
-
scheduleExistingSnmpInterface
protected void scheduleExistingSnmpInterface()
scheduleExistingSnmpInterface
-
schedulePollableInterface
protected void schedulePollableInterface(OnmsIpInterface iface)
schedulePollableInterface
- Parameters:
iface
- aOnmsIpInterface
object.
-
reloadSnmpConfig
public void reloadSnmpConfig(IEvent event)
reloadSnmpConfig
- Parameters:
event
- aIEvent
object.
-
reloadConfig
public void reloadConfig(IEvent event)
reloadConfig
- Parameters:
event
- aIEvent
object.
-
primarychangeHandler
public void primarychangeHandler(IEvent event)
primarychangeHandler
- Parameters:
event
- aIEvent
object.
-
deleteInterfaceHaldler
public void deleteInterfaceHaldler(IEvent event)
deleteInterfaceHaldler
- Parameters:
event
- aIEvent
object.
-
scanCompletedHaldler
public void scanCompletedHaldler(IEvent event)
scanCompletedHaldler
- Parameters:
event
- aIEvent
object.
-
rescanCompletedHaldler
public void rescanCompletedHaldler(IEvent event)
rescanCompletedHaldler
- Parameters:
event
- aIEvent
object.
-
nodeDeletedHandler
public void nodeDeletedHandler(IEvent event)
nodeDeletedHandler
- Parameters:
event
- aIEvent
object.
-
serviceGainedHandler
public void serviceGainedHandler(IEvent event)
serviceGainedHandler
- Parameters:
event
- aIEvent
object.
-
serviceDownHandler
public void serviceDownHandler(IEvent event)
serviceDownHandler
- Parameters:
event
- aIEvent
object.
-
serviceUpHandler
public void serviceUpHandler(IEvent event)
serviceUpHandler
- Parameters:
event
- aIEvent
object.
-
interfaceUpHandler
public void interfaceUpHandler(IEvent event)
interfaceUpHandler
- Parameters:
event
- aIEvent
object.
-
interfaceDownHandler
public void interfaceDownHandler(IEvent event)
interfaceDownHandler
- Parameters:
event
- aIEvent
object.
-
nodeUpHandler
public void nodeUpHandler(IEvent event)
nodeUpHandler
- Parameters:
event
- aIEvent
object.
-
-