public abstract class AbstractLinkdTopologyProvider extends AbstractTopologyProvider implements GraphProvider, SearchProvider
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractLinkdTopologyProvider.LinkStateMachine |
AbstractTopologyProvider.IdGenerator
Modifier and Type | Field and Description |
---|---|
protected static String |
HTML_TOOLTIP_TAG_END |
protected static String |
HTML_TOOLTIP_TAG_OPEN |
protected boolean |
m_aclEnabled |
protected boolean |
m_addNodeWithoutLink |
protected LinkdHopCriteriaFactory |
m_criteriaHopFactory |
protected FilterManager |
m_filterManager |
protected IpInterfaceDao |
m_ipInterfaceDao |
protected NodeDao |
m_nodeDao |
protected static EnumMap<OnmsNode.NodeType,String> |
m_nodeStatusMap |
protected SnmpInterfaceDao |
m_snmpInterfaceDao |
protected TopologyDao |
m_topologyDao |
protected org.springframework.transaction.support.TransactionOperations |
m_transactionOperations |
protected static DecimalFormat |
s_noDigitsAfterDecimal
Print no digits after the decimal point (heh, nor a decimal point).
|
protected static DecimalFormat |
s_oneDigitAfterDecimal
Always print at least one digit after the decimal point,
and at most three digits after the decimal point.
|
static String |
TOPOLOGY_NAMESPACE_LINKD |
SIMPLE_EDGE_ID_PREFIX, SIMPLE_GROUP_ID_PREFIX, SIMPLE_VERTEX_ID_PREFIX, topologyProviderInfo
m_edgeProvider, m_vertexProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractLinkdTopologyProvider() |
Modifier and Type | Method and Description |
---|---|
protected Vertex |
createVertexFor(OnmsNode node,
OnmsIpInterface ipInterface) |
protected OnmsIpInterface |
getAddress(Integer nodeId) |
protected Map<Integer,String> |
getAllNodesNoACL() |
Defaults |
getDefaults() |
protected AbstractVertex |
getDefaultVertex(Integer nodeId,
String sysobjectId,
String nodeLabel,
String location,
OnmsNode.NodeType nodeType,
boolean isManaged,
String ip) |
protected List<Vertex> |
getFilteredVertices() |
FilterManager |
getFilterManager() |
protected static String |
getHumanReadableIfSpeed(long ifSpeed)
Method used to convert an integer bits-per-second value to a more
readable vale using commonly recognized abbreviation for network
interface speeds.
|
static String |
getIconName(String nodeSysObjectId) |
IpInterfaceDao |
getIpInterfaceDao() |
LinkdHopCriteriaFactory |
getLinkdHopCriteriaFactory() |
NodeDao |
getNodeDao() |
protected static String |
getNodeTooltipDefaultText(String ip,
String label,
boolean isManaged,
String location,
OnmsNode.NodeType nodeType) |
SnmpInterfaceDao |
getSnmpInterfaceDao() |
org.springframework.transaction.support.TransactionOperations |
getTransactionOperations() |
protected AbstractVertex |
getVertex(Integer nodeId,
String ip,
String sysobjectId,
String nodeLabel,
String tooltipText) |
boolean |
isAclEnabled() |
boolean |
isAddNodeWithoutLink() |
void |
setAddNodeWithoutLink(boolean addNodeWithoutLink) |
void |
setFilterManager(FilterManager filterManager) |
void |
setIpInterfaceDao(IpInterfaceDao ipInterfaceDao) |
void |
setLinkdHopCriteriaFactory(LinkdHopCriteriaFactory criteriaHopFactory) |
void |
setNodeDao(NodeDao nodeDao) |
void |
setSnmpInterfaceDao(SnmpInterfaceDao snmpInterfaceDao) |
void |
setTopologyDao(TopologyDao topologyDao) |
void |
setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations) |
addEdges, addGroup, addGroup, addVertex, addVertex, addVertices, clearCounters, connectVertices, connectVertices, getEdgeIdsForVertex, getEdgeIdsForVertices, getGroups, getNextEdgeId, getNextGroupId, getNextVertexId, getSelection, getTopologyProviderInfo, getVerticesWithoutGroups, refresh, 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, refresh, 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, getSelection
addVertexHopCriteria, contributesTo, getSearchProviderNamespace, getVertexRefsBy, onCenterSearchResult, onDefocusSearchResult, onFocusSearchResult, onToggleCollapse, query, removeVertexHopCriteria, supportsPrefix
public static final String TOPOLOGY_NAMESPACE_LINKD
protected static final String HTML_TOOLTIP_TAG_OPEN
protected static final String HTML_TOOLTIP_TAG_END
protected static final DecimalFormat s_oneDigitAfterDecimal
protected static final DecimalFormat s_noDigitsAfterDecimal
protected static final EnumMap<OnmsNode.NodeType,String> m_nodeStatusMap
protected final boolean m_aclEnabled
protected org.springframework.transaction.support.TransactionOperations m_transactionOperations
protected NodeDao m_nodeDao
protected SnmpInterfaceDao m_snmpInterfaceDao
protected IpInterfaceDao m_ipInterfaceDao
protected TopologyDao m_topologyDao
protected FilterManager m_filterManager
protected boolean m_addNodeWithoutLink
protected LinkdHopCriteriaFactory m_criteriaHopFactory
protected static String getHumanReadableIfSpeed(long ifSpeed)
ifSpeed
- The bits-per-second value to be converted into a string
descriptionprotected static String getNodeTooltipDefaultText(String ip, String label, boolean isManaged, String location, OnmsNode.NodeType nodeType)
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 void setAddNodeWithoutLink(boolean addNodeWithoutLink)
public boolean isAddNodeWithoutLink()
public boolean isAclEnabled()
public IpInterfaceDao getIpInterfaceDao()
public LinkdHopCriteriaFactory getLinkdHopCriteriaFactory()
public void setLinkdHopCriteriaFactory(LinkdHopCriteriaFactory criteriaHopFactory)
protected OnmsIpInterface getAddress(Integer nodeId)
protected AbstractVertex getDefaultVertex(Integer nodeId, String sysobjectId, String nodeLabel, String location, OnmsNode.NodeType nodeType, boolean isManaged, String ip)
protected AbstractVertex getVertex(Integer nodeId, String ip, String sysobjectId, String nodeLabel, String tooltipText)
public Defaults getDefaults()
getDefaults
in interface GraphProvider
protected Vertex createVertexFor(OnmsNode node, OnmsIpInterface ipInterface)
Copyright © 2017. All rights reserved.