Class TopologyUpdater
- java.lang.Object
-
- org.opennms.netmgt.enlinkd.common.Discovery
-
- org.opennms.netmgt.enlinkd.common.TopologyUpdater
-
- All Implemented Interfaces:
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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract OnmsTopology
buildTopology()
static OnmsTopologyVertex
create(NodeTopologyEntity node, IpInterfaceTopologyEntity primary)
static OnmsTopologyProtocol
create(ProtocolSupported protocol)
void
forceRun()
NodeTopologyEntity
getDefaultFocusPoint()
Map<Integer,IpInterfaceTopologyEntity>
getIpPrimaryMap()
Map<Integer,NodeTopologyEntity>
getNodeMap()
NodeTopologyService
getNodeTopologyService()
com.google.common.collect.Table<Integer,Integer,SnmpInterfaceTopologyEntity>
getSnmpInterfaceTable()
OnmsTopology
getTopology()
OnmsTopologyDao
getTopologyDao()
boolean
isForceRun()
boolean
isRegistered()
boolean
isRunned()
void
register()
void
runDiscovery()
protected OnmsTopology
runDiscoveryInternally(OnmsTopology oldTopology)
void
setRegistered(boolean registered)
void
setRunned(boolean runned)
void
setTopology(OnmsTopology topology)
void
unregister()
-
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 Map<Integer,NodeTopologyEntity> getNodeMap()
-
getIpPrimaryMap
public Map<Integer,IpInterfaceTopologyEntity> getIpPrimaryMap()
-
getSnmpInterfaceTable
public com.google.common.collect.Table<Integer,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()
-
-