Class GraphMLEdgeStatusProvider
- java.lang.Object
-
- org.opennms.features.topology.plugins.topo.graphml.status.GraphMLEdgeStatusProvider
-
- All Implemented Interfaces:
NamespaceAware
,EdgeStatusProvider
public class GraphMLEdgeStatusProvider extends java.lang.Object implements EdgeStatusProvider
-
-
Constructor Summary
Constructors Constructor Description GraphMLEdgeStatusProvider(GraphMLTopologyProvider provider, javax.script.ScriptEngineManager scriptEngineManager, GraphMLServiceAccessor serviceAccessor)
GraphMLEdgeStatusProvider(GraphMLTopologyProvider provider, javax.script.ScriptEngineManager scriptEngineManager, GraphMLServiceAccessor serviceAccessor, java.nio.file.Path scriptPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contributesTo(java.lang.String namespace)
Defines if the current implementation contributes to the given namespace.java.lang.String
getNamespace()
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)
-
-
-
Constructor Detail
-
GraphMLEdgeStatusProvider
public GraphMLEdgeStatusProvider(GraphMLTopologyProvider provider, javax.script.ScriptEngineManager scriptEngineManager, GraphMLServiceAccessor serviceAccessor, java.nio.file.Path scriptPath)
-
GraphMLEdgeStatusProvider
public GraphMLEdgeStatusProvider(GraphMLTopologyProvider provider, javax.script.ScriptEngineManager scriptEngineManager, GraphMLServiceAccessor serviceAccessor)
-
-
Method Detail
-
getStatusForEdges
public java.util.Map<? extends EdgeRef,? extends Status> getStatusForEdges(BackendGraph graph, java.util.Collection<EdgeRef> edges, Criteria[] criteria)
- Specified by:
getStatusForEdges
in interfaceEdgeStatusProvider
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:NamespaceAware
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.)- Specified by:
getNamespace
in interfaceNamespaceAware
- Returns:
- the namespace, e.g. "nodes".
-
contributesTo
public boolean contributesTo(java.lang.String namespace)
Description copied from interface:NamespaceAware
Defines 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:
contributesTo
in interfaceNamespaceAware
- Parameters:
namespace
- the namespace to contribute to- Returns:
true
, if the current implementation contributes to the given namespace, otherwisefalse
.
-
-