public class LinkdTopologyProvider extends AbstractTopologyProvider implements GraphProvider
Modifier and Type | Class and Description |
---|---|
static class |
LinkdTopologyProvider.ProtocolSupported |
AbstractTopologyProvider.IdGenerator
Modifier and Type | Field and Description |
---|---|
static String |
TOPOLOGY_NAMESPACE_LINKD |
SIMPLE_EDGE_ID_PREFIX, SIMPLE_GROUP_ID_PREFIX, SIMPLE_VERTEX_ID_PREFIX, topologyProviderInfo
m_edgeProvider, m_vertexProvider
Constructor and Description |
---|
LinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry) |
addEdges, addGroup, addGroup, addVertex, addVertex, addVertices, clearCounters, connectVertices, connectVertices, getEdgeIdsForVertex, getEdgeIdsForVertices, getGroups, getNextEdgeId, getNextGroupId, getNextVertexId, getSelection, getTopologyProviderInfo, getVerticesWithoutGroups, removeEdges, removeVertex, resetContainer, setTopologyProviderInfo
addEdgeListener, addVertexListener, clearEdges, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getEdge, getEdge, getEdges, getEdges, getEdgeTotalCount, getNamespace, getParent, getRootGroup, getSemanticZoomLevel, getSimpleEdgeProvider, getSimpleVertexProvider, getVertex, getVertex, getVertexTotalCount, getVertices, getVertices, hasChildren, removeEdgeListener, removeVertexListener, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEdges, addGroup, addVertex, addVertices, connectVertices, getEdgeIdsForVertex, getEdgeIdsForVertices, getTopologyProviderInfo, removeEdges, removeVertex, resetContainer
addVertexListener, clearVertices, containsVertexId, containsVertexId, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexTotalCount, getVertices, getVertices, hasChildren, removeVertexListener, setParent
addEdgeListener, clearEdges, getEdge, getEdge, getEdges, getEdges, getEdgeTotalCount, removeEdgeListener
contributesTo, getNamespace
public static final String TOPOLOGY_NAMESPACE_LINKD
public LinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry)
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
SelectionAware
selectedVertices
to a Selection.
The provided type
represents the according browser table.
This method is only invoked if SelectionAware.contributesTo(ContentType)
returns to for the provided type
getSelection
in interface SelectionAware
selectedVertices
- The vertices currently selected in the Topology UI.type
- The type to filter for. Represents the according browser table.SelectionChangedListener.Selection
public boolean contributesTo(ContentType type)
SelectionAware
GraphProvider
to define if it
contributes to a certain ContentType
.
If false
it is not shown in the browsers tab at allcontributesTo
in interface SelectionAware
type
- The type to check if this
contribute tothis
contributes to the provided type
protected void connectVertices(String id, AbstractVertex sourceV, AbstractVertex targetV, OnmsSnmpInterface sourceinterface, OnmsSnmpInterface targetInterface, String sourceAddr, String targetAddr, LinkdTopologyProvider.ProtocolSupported discoveredBy)
public org.springframework.transaction.support.TransactionOperations getTransactionOperations()
public void setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations)
public SnmpInterfaceDao getSnmpInterfaceDao()
public void setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao)
public NodeDao getNodeDao()
public void setNodeDao(NodeDao nodeDao)
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
public void setTopologyDao(TopologyDao topologyDao)
public void setFilterManager(FilterManager filterManager)
public FilterManager getFilterManager()
public IpInterfaceDao getIpInterfaceDao()
public void setLldpLinkDao(LldpLinkDao lldpLinkDao)
public LldpLinkDao getLldpLinkDao()
public void setLldpElementDao(LldpElementDao lldpElementDao)
public LldpElementDao getLldpElementDao()
public void setOspfLinkDao(OspfLinkDao ospfLinkDao)
public OspfLinkDao getOspfLinkDao()
public IsIsLinkDao getIsisLinkDao()
public void setIsisLinkDao(IsIsLinkDao isisLinkDao)
public IsIsElementDao getIsisElementDao()
public void setIsisElementDao(IsIsElementDao isisElementDao)
public BridgeTopologyDao getBridgeTopologyDao()
public void setBridgeTopologyDao(BridgeTopologyDao bridgeTopologyDao)
public IpNetToMediaDao getIpNetToMediaDao()
public void setIpNetToMediaDao(IpNetToMediaDao ipNetToMediaDao)
public CdpLinkDao getCdpLinkDao()
public void setCdpLinkDao(CdpLinkDao cdpLinkDao)
public CdpElementDao getCdpElementDao()
public void setCdpElementDao(CdpElementDao cdpElementDao)
public Defaults getDefaults()
getDefaults
in interface GraphProvider
public void refresh()
refresh
in interface GraphProvider
refresh
in class AbstractTopologyProvider
Copyright © 2018. All rights reserved.