Class LinkdEdgeStatusProvider
- java.lang.Object
-
- org.opennms.features.topology.plugins.topo.linkd.internal.LinkdEdgeStatusProvider
-
- All Implemented Interfaces:
NamespaceAware
,EdgeStatusProvider
public class LinkdEdgeStatusProvider extends Object implements EdgeStatusProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinkdEdgeStatusProvider.LinkdEdgeStatus
-
Constructor Summary
Constructors Constructor Description LinkdEdgeStatusProvider()
-
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.AlarmDao
getAlarmDao()
protected List<OnmsAlarm>
getLinkdEdgeDownAlarms()
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.)SessionUtils
getSessionUtils()
Map<EdgeRef,Status>
getStatusForEdges(BackendGraph graph, Collection<EdgeRef> edges, Criteria[] criteria)
void
setAlarmDao(AlarmDao alarmDao)
void
setSessionUtils(SessionUtils m_sessionUtils)
-
-
-
Method Detail
-
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".
-
getStatusForEdges
public Map<EdgeRef,Status> getStatusForEdges(BackendGraph graph, Collection<EdgeRef> edges, Criteria[] criteria)
- Specified by:
getStatusForEdges
in interfaceEdgeStatusProvider
-
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
.
-
getAlarmDao
public AlarmDao getAlarmDao()
-
setAlarmDao
public void setAlarmDao(AlarmDao alarmDao)
-
getSessionUtils
public SessionUtils getSessionUtils()
-
setSessionUtils
public void setSessionUtils(SessionUtils m_sessionUtils)
-
-