public abstract class NodeDiscovery extends Discovery
Modifier and Type | Field and Description |
---|---|
protected Node |
m_node
The node ID of the system used to collect the SNMP information
|
m_initial_sleep_time, m_linkd, m_poll_interval, m_suspendCollection
Constructor and Description |
---|
NodeDiscovery(EnhancedLinkd linkd,
Node node)
Constructs a new SNMP collector for a node using the passed interface
as the collection point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInfo()
getInfo
|
String |
getLocation() |
int |
getNodeId() |
InetAddress |
getPrimaryIpAddress()
Returns the target address that the collection occurred for.
|
String |
getPrimaryIpAddressString() |
String |
getSysname() |
String |
getSysoid() |
int |
hashCode() |
void |
runDiscovery()
Performs the collection for the targeted IP address.
|
protected abstract void |
runNodeDiscovery() |
getInitialSleepTime, getName, getPollInterval, getScheduler, isReady, isSuspended, reschedule, run, schedule, sendCompletedEvent, sendStartEvent, sendSuspendedEvent, setInitialSleepTime, setPollInterval, setScheduler, suspend, unschedule, wakeUp
protected final Node m_node
public NodeDiscovery(EnhancedLinkd linkd, Node node)
run
method is invoked.nodeid
- config
- The SnmpPeer object to collect from.protected abstract void runNodeDiscovery()
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 String getInfo()
getInfo
getInfo
in interface ReadyRunnable
getInfo
in class Discovery
String
object.public int getNodeId()
public String getSysoid()
public String getSysname()
public String getLocation()
Copyright © 2019. All rights reserved.