Class SnmpPollInterfaceMonitor
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.SnmpPollInterfaceMonitor
-
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.
- 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()
String
getLocation()
List<PollableSnmpInterface.SnmpMinimalPollInterface>
poll(SnmpAgentConfig agentConfig, List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
pollvoid
setInterval(long interval)
void
setLocation(String location)
-
-
-
Constructor Detail
-
SnmpPollInterfaceMonitor
public SnmpPollInterfaceMonitor(LocationAwareSnmpClient locationAwareSnmpClient)
-
-
Method Detail
-
poll
public List<PollableSnmpInterface.SnmpMinimalPollInterface> poll(SnmpAgentConfig agentConfig, List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
poll
- Parameters:
agentConfig
- aSnmpAgentConfig
object.mifaces
- aList
object.- Returns:
- a
List
object.
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
-
-