org.opennms.netmgt.snmpinterfacepoller
Class SnmpPollInterfaceMonitor

java.lang.Object
  extended by org.opennms.netmgt.snmpinterfacepoller.SnmpPollInterfaceMonitor

@Distributable(value=DAEMON)
public class SnmpPollInterfaceMonitor
extends Object

This class is designed to be used by the service poller framework to test the availability of the SNMP service on remote interfaces. The class implements the ServiceMonitor interface that allows it to be used along with other plug-ins by the service poller framework.

Author:
Tarus Balog , Mike Davidson , OpenNMS

Constructor Summary
SnmpPollInterfaceMonitor()
           
 
Method Summary
protected  Category log()
           
 List<PollableSnmpInterface.SnmpMinimalPollInterface> poll(org.opennms.netmgt.snmp.SnmpAgentConfig agentConfig, List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
           The poll() method is responsible for polling the specified address for SNMP service availability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpPollInterfaceMonitor

public SnmpPollInterfaceMonitor()
Method Detail

poll

public List<PollableSnmpInterface.SnmpMinimalPollInterface> poll(org.opennms.netmgt.snmp.SnmpAgentConfig agentConfig,
                                                                 List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)

The poll() method is responsible for polling the specified address for SNMP service availability.

Parameters:
parameters - The package parameters (timeout, retry, etc...) to be used for this poll.
iface - The network interface to test the service on.
Returns:
The availability of the interface and if a transition event should be supressed.
Throws:
RuntimeException - Thrown for any uncrecoverable errors.

log

protected Category log()


Copyright © 2009. All Rights Reserved.