Package org.opennms.netmgt.enlinkd
Class NodeDiscoveryLldp
- java.lang.Object
-
- org.opennms.netmgt.enlinkd.common.Discovery
-
- org.opennms.netmgt.enlinkd.common.NodeCollector
-
- org.opennms.netmgt.enlinkd.NodeDiscoveryLldp
-
- All Implemented Interfaces:
java.lang.Runnable
,ReadyRunnable
public final class NodeDiscoveryLldp extends NodeCollector
This class is designed to collect the necessary SNMP information from the target address and store the collected information. When the class is initially constructed no information is collected. The SNMP Session creating and collection occurs in the main run method of the instance. This allows the collection to occur in a thread if necessary.
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.enlinkd.common.NodeCollector
m_node
-
-
Constructor Summary
Constructors Constructor Description NodeDiscoveryLldp(LldpTopologyService lldpTopologyService, LocationAwareSnmpClient locationAwareSnmpClient, long interval, long initial, Node node)
Constructs a new SNMP collector for Lldp Node Discovery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect()
java.lang.String
getName()
-
Methods inherited from class org.opennms.netmgt.enlinkd.common.NodeCollector
equals, getInfo, getLocation, getLocationAwareSnmpClient, getNode, getNodeId, getPrimaryIpAddress, getPrimaryIpAddressString, getSnmpAgentConfig, getSysname, getSysoid, hashCode, runDiscovery
-
Methods inherited from class org.opennms.netmgt.enlinkd.common.Discovery
getInitialSleepTime, getPollInterval, getScheduler, isReady, run, schedule, setInitialSleepTime, setPollInterval, setScheduler, suspend, unschedule, wakeUp
-
-
-
-
Constructor Detail
-
NodeDiscoveryLldp
public NodeDiscoveryLldp(LldpTopologyService lldpTopologyService, LocationAwareSnmpClient locationAwareSnmpClient, long interval, long initial, Node node)
Constructs a new SNMP collector for Lldp Node Discovery. The collection does not occur until thecollect
method is invoked.
-
-
Method Detail
-
collect
public void collect()
- Specified by:
collect
in classNodeCollector
-
-