public class EnhancedLinkdTopologyProvider extends AbstractLinkdTopologyProvider
Modifier and Type | Class and Description |
---|---|
class |
EnhancedLinkdTopologyProvider.CdpLinkDetail |
AbstractLinkdTopologyProvider.LinkStateMachine
AbstractTopologyProvider.IdGenerator
Modifier and Type | Field and Description |
---|---|
static String |
BRIDGE_EDGE_NAMESPACE |
static String |
CDP_EDGE_NAMESPACE |
static String |
ISIS_EDGE_NAMESPACE |
static String |
LLDP_EDGE_NAMESPACE |
static String |
OSPF_EDGE_NAMESPACE |
HTML_TOOLTIP_TAG_END, HTML_TOOLTIP_TAG_OPEN, m_aclEnabled, m_addNodeWithoutLink, m_criteriaHopFactory, m_filterManager, m_ipInterfaceDao, m_nodeDao, m_nodeStatusMap, m_snmpInterfaceDao, m_topologyDao, m_transactionOperations, s_noDigitsAfterDecimal, s_oneDigitAfterDecimal, TOPOLOGY_NAMESPACE_LINKD
SIMPLE_EDGE_ID_PREFIX, SIMPLE_GROUP_ID_PREFIX, SIMPLE_VERTEX_ID_PREFIX, topologyProviderInfo
m_edgeProvider, m_vertexProvider
Constructor and Description |
---|
EnhancedLinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
addVertexHopCriteria(SearchResult searchResult,
GraphContainer container)
This method is called when the selection is made from the list of
|
protected LinkdEdge |
connectCloudMacVertices(String targetmac,
VertexRef sourceRef,
VertexRef targetRef,
String nameSpace) |
protected LinkdEdge |
connectVertices(BridgeMacLink link,
VertexRef sourceRef,
VertexRef targetRef,
String nameSpace) |
protected LinkdEdge |
connectVertices(BridgePort targetport,
VertexRef sourceRef,
VertexRef targetRef,
String nameSpace) |
protected LinkdEdge |
connectVertices(org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider.LinkDetail<?> linkdetail,
String nameSpace) |
boolean |
contributesTo(ContentType type)
Allows the
GraphProvider to define if it
contributes to a certain ContentType . |
BridgeTopologyDao |
getBridgeTopologyDao() |
CdpElementDao |
getCdpElementDao() |
CdpLinkDao |
getCdpLinkDao() |
IpNetToMediaDao |
getIpNetToMediaDao() |
IsIsLinkDao |
getIsisLinkDao() |
LldpElementDao |
getLldpElementDao() |
LldpLinkDao |
getLldpLinkDao() |
protected Vertex |
getOrCreateVertex(OnmsNode sourceNode,
OnmsIpInterface primary) |
OspfLinkDao |
getOspfLinkDao() |
String |
getSearchProviderNamespace()
This is a namespace for search providers...
|
SelectionChangedListener.Selection |
getSelection(List<VertexRef> selectedVertices,
ContentType type)
Converts the provided
selectedVertices to a Selection. |
Set<VertexRef> |
getVertexRefsBy(SearchResult searchResult,
GraphContainer container)
This method is called when the topology UI needs to know what
|
void |
onCenterSearchResult(SearchResult searchResult,
GraphContainer graphContainer)
This method called when the user clicks the focus icon on the
|
void |
onDefocusSearchResult(SearchResult searchResult,
OperationContext operationContext)
This method is called from the UI when the user wants to remove a vertex that currently in the focus list.
|
void |
onFocusSearchResult(SearchResult searchResult,
OperationContext operationContext)
This method is called from the UI when the user wants to add a vertex that is in the current context
to the focus list.
|
void |
onToggleCollapse(SearchResult searchResult,
GraphContainer graphContainer)
This method is called if the
|
List<SearchResult> |
query(SearchQuery searchQuery,
GraphContainer graphContainer)
This API is for getting a list of
|
void |
refresh() |
void |
removeVertexHopCriteria(SearchResult searchResult,
GraphContainer container)
When the user requests that the current SearchResult be removed from focus, the search provider should remove the
|
void |
setBridgeTopologyDao(BridgeTopologyDao bridgeTopologyDao) |
void |
setCdpElementDao(CdpElementDao cdpElementDao) |
void |
setCdpLinkDao(CdpLinkDao cdpLinkDao) |
void |
setIpNetToMediaDao(IpNetToMediaDao ipNetToMediaDao) |
void |
setIsisLinkDao(IsIsLinkDao isisLinkDao) |
void |
setLldpElementDao(LldpElementDao lldpElementDao) |
void |
setLldpLinkDao(LldpLinkDao lldpLinkDao) |
void |
setOspfLinkDao(OspfLinkDao ospfLinkDao) |
boolean |
supportsPrefix(String searchPrefix)
This method is called by topology app the user is searching to setup prefixes that will only match from
a
|
createVertexFor, getAddress, getAllNodesNoACL, getDefaults, getDefaultVertex, getFilteredVertices, getFilterManager, getHumanReadableIfSpeed, getIconName, getIpInterfaceDao, getLinkdHopCriteriaFactory, getNodeDao, getNodeTooltipDefaultText, getSnmpInterfaceDao, getTransactionOperations, getVertex, isAclEnabled, isAddNodeWithoutLink, setAddNodeWithoutLink, setFilterManager, setIpInterfaceDao, setLinkdHopCriteriaFactory, setNodeDao, setSnmpInterfaceDao, setTopologyDao, setTransactionOperations
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
contributesTo
public static final String LLDP_EDGE_NAMESPACE
public static final String OSPF_EDGE_NAMESPACE
public static final String ISIS_EDGE_NAMESPACE
public static final String BRIDGE_EDGE_NAMESPACE
public static final String CDP_EDGE_NAMESPACE
public EnhancedLinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry)
protected final Vertex getOrCreateVertex(OnmsNode sourceNode, OnmsIpInterface primary)
protected final LinkdEdge connectCloudMacVertices(String targetmac, VertexRef sourceRef, VertexRef targetRef, String nameSpace)
protected final LinkdEdge connectVertices(BridgePort targetport, VertexRef sourceRef, VertexRef targetRef, String nameSpace)
protected final LinkdEdge connectVertices(BridgeMacLink link, VertexRef sourceRef, VertexRef targetRef, String nameSpace)
protected final LinkdEdge connectVertices(org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider.LinkDetail<?> linkdetail, String nameSpace)
@Transactional public void refresh()
refresh
in interface GraphProvider
refresh
in class AbstractTopologyProvider
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 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 String getSearchProviderNamespace()
SearchProvider
public List<SearchResult> query(SearchQuery searchQuery, GraphContainer graphContainer)
SearchProvider
searchQuery
- This is an API for Vaadin UI code for implementing various search queries types.public void onFocusSearchResult(SearchResult searchResult, OperationContext operationContext)
SearchProvider
public void onDefocusSearchResult(SearchResult searchResult, OperationContext operationContext)
SearchProvider
public boolean supportsPrefix(String searchPrefix)
SearchProvider
public Set<VertexRef> getVertexRefsBy(SearchResult searchResult, GraphContainer container)
SearchProvider
public void addVertexHopCriteria(SearchResult searchResult, GraphContainer container)
SearchProvider
public void removeVertexHopCriteria(SearchResult searchResult, GraphContainer container)
SearchProvider
public void onCenterSearchResult(SearchResult searchResult, GraphContainer graphContainer)
SearchProvider
public void onToggleCollapse(SearchResult searchResult, GraphContainer graphContainer)
SearchProvider
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
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 alltype
- The type to check if this
contribute tothis
contributes to the provided type
Copyright © 2017. All rights reserved.