Class GraphMLDefaultVertexStatusProvider
- java.lang.Object
-
- org.opennms.features.topology.plugins.topo.graphml.status.GraphMLDefaultVertexStatusProvider
-
- All Implemented Interfaces:
NamespaceAware
,StatusProvider
public class GraphMLDefaultVertexStatusProvider extends Object implements StatusProvider
-
-
Constructor Summary
Constructors Constructor Description GraphMLDefaultVertexStatusProvider(String namespace, AlarmSummaryWrapper alarmSummaryWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contributesTo(String namespace)
Defines if the current implementation contributes to the given namespace.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.)Map<? extends VertexRef,? extends Status>
getStatusForVertices(BackendGraph graph, Collection<VertexRef> vertices, Criteria[] criteria)
-
-
-
Constructor Detail
-
GraphMLDefaultVertexStatusProvider
public GraphMLDefaultVertexStatusProvider(String namespace, AlarmSummaryWrapper alarmSummaryWrapper)
-
-
Method Detail
-
contributesTo
public boolean contributesTo(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
.
-
getNamespace
public 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".
-
getStatusForVertices
public Map<? extends VertexRef,? extends Status> getStatusForVertices(BackendGraph graph, Collection<VertexRef> vertices, Criteria[] criteria)
- Specified by:
getStatusForVertices
in interfaceStatusProvider
-
-