public abstract class NodeCollector extends Discovery
Modifier and Type | Field and Description |
---|---|
protected Node |
m_node
The node ID of the system used to collect the SNMP information
|
Constructor and Description |
---|
NodeCollector(LocationAwareSnmpClient locationAwareSnmpClient,
long interval,
long initial,
Node node)
Constructs a new SNMP collector for a node using the passed interface
as the collection point.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
collect() |
boolean |
equals(Object obj) |
String |
getInfo()
getInfo
|
String |
getLocation() |
LocationAwareSnmpClient |
getLocationAwareSnmpClient() |
Node |
getNode() |
int |
getNodeId() |
InetAddress |
getPrimaryIpAddress()
Returns the target address that the collection occurred for.
|
String |
getPrimaryIpAddressString() |
SnmpAgentConfig |
getSnmpAgentConfig() |
String |
getSysname() |
String |
getSysoid() |
int |
hashCode() |
void |
runDiscovery()
Performs the collection for the targeted IP address.
|
getInitialSleepTime, getName, getPollInterval, getScheduler, isReady, run, schedule, setInitialSleepTime, setPollInterval, setScheduler, suspend, unschedule, wakeUp
protected final Node m_node
public NodeCollector(LocationAwareSnmpClient locationAwareSnmpClient, long interval, long initial, Node node)
run
method is invoked.nodeid
- config
- The SnmpPeer object to collect from.public abstract void collect()
public void runDiscovery()
Performs the collection for the targeted IP address. The success or
failure of the collection should be tested via the failed
method.
No synchronization is performed, so if this is used in a separate thread context synchronization must be added.
runDiscovery
in class Discovery
public InetAddress getPrimaryIpAddress()
InetAddress
object.public String getPrimaryIpAddressString()
public int getNodeId()
public String getSysoid()
public String getSysname()
public String getLocation()
public SnmpAgentConfig getSnmpAgentConfig()
public LocationAwareSnmpClient getLocationAwareSnmpClient()
public Node getNode()
Copyright © 2021. All rights reserved.