Class TopologyUpdater
- java.lang.Object
-
- org.opennms.netmgt.enlinkd.common.Discovery
-
- org.opennms.netmgt.enlinkd.common.TopologyUpdater
-
- All Implemented Interfaces:
java.lang.Runnable
,ReadyRunnable
,OnmsTopologyUpdater
- Direct Known Subclasses:
BridgeOnmsTopologyUpdater
,CdpOnmsTopologyUpdater
,IsisOnmsTopologyUpdater
,LldpOnmsTopologyUpdater
,NodesOnmsTopologyUpdater
,OspfOnmsTopologyUpdater
,UserDefinedLinkTopologyUpdater
public abstract class TopologyUpdater extends Discovery implements OnmsTopologyUpdater
-
-
Constructor Summary
Constructors Constructor Description TopologyUpdater(TopologyService topologyService, OnmsTopologyDao topologyDao, NodeTopologyService nodeTopologyService)
-
Method Summary
-
Methods inherited from class org.opennms.netmgt.enlinkd.common.Discovery
equals, getInfo, getInitialSleepTime, getName, getPollInterval, getScheduler, hashCode, isReady, run, schedule, setInitialSleepTime, setPollInterval, setScheduler, suspend, unschedule, wakeUp
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.topologies.service.api.OnmsTopologyUpdater
getName, getProtocol
-
-
-
-
Constructor Detail
-
TopologyUpdater
public TopologyUpdater(TopologyService topologyService, OnmsTopologyDao topologyDao, NodeTopologyService nodeTopologyService)
-
-
Method Detail
-
create
public static OnmsTopologyProtocol create(ProtocolSupported protocol)
-
create
public static OnmsTopologyVertex create(NodeTopologyEntity node, IpInterfaceTopologyEntity primary)
-
register
public void register()
-
unregister
public void unregister()
-
runDiscovery
public void runDiscovery()
- Specified by:
runDiscovery
in classDiscovery
-
runDiscoveryInternally
protected OnmsTopology runDiscoveryInternally(OnmsTopology oldTopology)
-
getTopologyDao
public OnmsTopologyDao getTopologyDao()
-
getNodeTopologyService
public NodeTopologyService getNodeTopologyService()
-
getNodeMap
public java.util.Map<java.lang.Integer,NodeTopologyEntity> getNodeMap()
-
getIpPrimaryMap
public java.util.Map<java.lang.Integer,IpInterfaceTopologyEntity> getIpPrimaryMap()
-
getSnmpInterfaceTable
public com.google.common.collect.Table<java.lang.Integer,java.lang.Integer,SnmpInterfaceTopologyEntity> getSnmpInterfaceTable()
-
buildTopology
public abstract OnmsTopology buildTopology()
-
getTopology
public OnmsTopology getTopology()
- Specified by:
getTopology
in interfaceOnmsTopologyUpdater
-
getDefaultFocusPoint
public NodeTopologyEntity getDefaultFocusPoint()
-
isRegistered
public boolean isRegistered()
-
setRegistered
public void setRegistered(boolean registered)
-
setTopology
public void setTopology(OnmsTopology topology)
-
isRunned
public boolean isRunned()
-
setRunned
public void setRunned(boolean runned)
-
isForceRun
public boolean isForceRun()
-
forceRun
public void forceRun()
-
-