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.
Constructor and Description |
---|
SnmpPollInterfaceMonitor(LocationAwareSnmpClient locationAwareSnmpClient) |
Modifier and Type | Method and Description |
---|---|
long |
getInterval() |
String |
getLocation() |
List<PollableSnmpInterface.SnmpMinimalPollInterface> |
poll(SnmpAgentConfig agentConfig,
List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
poll
|
void |
setInterval(long interval) |
void |
setLocation(String location) |
public SnmpPollInterfaceMonitor(LocationAwareSnmpClient locationAwareSnmpClient)
public List<PollableSnmpInterface.SnmpMinimalPollInterface> poll(SnmpAgentConfig agentConfig, List<PollableSnmpInterface.SnmpMinimalPollInterface> mifaces)
poll
agentConfig
- a SnmpAgentConfig
object.mifaces
- a List
object.List
object.public String getLocation()
public void setLocation(String location)
public long getInterval()
public void setInterval(long interval)
Copyright © 2021. All rights reserved.