Class LegacyStatusProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.topology.LegacyStatusProvider
-
- All Implemented Interfaces:
NamespaceAware,EdgeStatusProvider,StatusProvider
public class LegacyStatusProvider extends java.lang.Object implements StatusProvider, EdgeStatusProvider
-
-
Constructor Summary
Constructors Constructor Description LegacyStatusProvider(java.lang.String namespace, AlarmDao alarmDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontributesTo(java.lang.String namespace)Defines if the current implementation contributes to the given namespace.java.lang.StringgetNamespace()A string used to identify references belonging to this provider May only contain characters that make for a reasonable Java identifier such as letters digits and underscore (no colons, periods, commas etc.)java.util.Map<? extends EdgeRef,? extends Status>getStatusForEdges(BackendGraph graph, java.util.Collection<EdgeRef> edges, Criteria[] criteria)java.util.Map<? extends VertexRef,? extends Status>getStatusForVertices(BackendGraph graph, java.util.Collection<VertexRef> vertices, Criteria[] criteria)
-
-
-
Constructor Detail
-
LegacyStatusProvider
public LegacyStatusProvider(java.lang.String namespace, AlarmDao alarmDao)
-
-
Method Detail
-
getStatusForVertices
public java.util.Map<? extends VertexRef,? extends Status> getStatusForVertices(BackendGraph graph, java.util.Collection<VertexRef> vertices, Criteria[] criteria)
- Specified by:
getStatusForVerticesin interfaceStatusProvider
-
getStatusForEdges
public java.util.Map<? extends EdgeRef,? extends Status> getStatusForEdges(BackendGraph graph, java.util.Collection<EdgeRef> edges, Criteria[] criteria)
- Specified by:
getStatusForEdgesin interfaceEdgeStatusProvider
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:NamespaceAwareA string used to identify references belonging to this provider May only contain characters that make for a reasonable Java identifier such as letters digits and underscore (no colons, periods, commas etc.)- Specified by:
getNamespacein interfaceNamespaceAware- Returns:
- the namespace, e.g. "nodes".
-
contributesTo
public boolean contributesTo(java.lang.String namespace)
Description copied from interface:NamespaceAwareDefines if the current implementation contributes to the given namespace. This is usually the case, when the given namespaces equalsNamespaceAware.getNamespace(), but is not a requirement.- Specified by:
contributesToin interfaceNamespaceAware- Parameters:
namespace- the namespace to contribute to- Returns:
true, if the current implementation contributes to the given namespace, otherwisefalse.
-
-