Class SnmpPollInterfaceMonitor
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.SnmpPollInterfaceMonitor
-
public class SnmpPollInterfaceMonitor extends java.lang.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.
- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
Constructor Summary
Constructors Constructor Description SnmpPollInterfaceMonitor(LocationAwareSnmpClient locationAwareSnmpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getInterval()
java.lang.String
getLocation()
java.util.List<PollableSnmpInterface.SnmpMinimalPollInterface>
poll(SnmpAgentConfig agentConfig, java.util.List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
pollvoid
setInterval(long interval)
void
setLocation(java.lang.String location)
-
-
-
Constructor Detail
-
SnmpPollInterfaceMonitor
public SnmpPollInterfaceMonitor(LocationAwareSnmpClient locationAwareSnmpClient)
-
-
Method Detail
-
poll
public java.util.List<PollableSnmpInterface.SnmpMinimalPollInterface> poll(SnmpAgentConfig agentConfig, java.util.List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
poll
- Parameters:
agentConfig
- aSnmpAgentConfig
object.mifaces
- aList
object.- Returns:
- a
List
object.
-
getLocation
public java.lang.String getLocation()
-
setLocation
public void setLocation(java.lang.String location)
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
-
-