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 longgetInterval()StringgetLocation()List<PollableSnmpInterface.SnmpMinimalPollInterface>poll(SnmpAgentConfig agentConfig, List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)pollvoidsetInterval(long interval)voidsetLocation(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- aSnmpAgentConfigobject.mifaces- aListobject.- Returns:
- a
Listobject.
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
-
-