Class BusinessServiceGraphProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.bsm.BusinessServiceGraphProvider
-
- All Implemented Interfaces:
EventListener
,GraphProvider
public class BusinessServiceGraphProvider extends java.lang.Object implements GraphProvider, EventListener
-
-
Constructor Summary
Constructors Constructor Description BusinessServiceGraphProvider(GraphContainerCache graphContainerCache, BusinessServiceManager businessServiceManager, EventIpcManager eventIpcManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
GraphInfo
getGraphInfo()
TheGraphInfo
should be used to provide details of the graph's nature, e.g.java.lang.String
getName()
Return the id of the listenervoid
init()
ImmutableGraph<?,?>
loadGraph()
Loads the graph, thisGraphProvider
handles.void
onEvent(IEvent e)
Process a sent event.
-
-
-
Constructor Detail
-
BusinessServiceGraphProvider
public BusinessServiceGraphProvider(GraphContainerCache graphContainerCache, BusinessServiceManager businessServiceManager, EventIpcManager eventIpcManager)
-
-
Method Detail
-
loadGraph
public ImmutableGraph<?,?> loadGraph()
Description copied from interface:GraphProvider
Loads the graph, thisGraphProvider
handles. Loading may be performed very quickly, but also may take some time.- Specified by:
loadGraph
in interfaceGraphProvider
- Returns:
- The populated graph.
-
getGraphInfo
public GraphInfo getGraphInfo()
Description copied from interface:GraphProvider
TheGraphInfo
should be used to provide details of the graph's nature, e.g. the namespace, label or description AImmutableGraph
should also embed this information. The difference is, that the info should always be available, even if the graph is not yet loaded, and should also never change during the provider's live time, whereas the graph itself may change (e.g. different vertices/edges and properties (besides the ones defining the info)).- Specified by:
getGraphInfo
in interfaceGraphProvider
- Returns:
- the meta information of the graph
-
getName
public java.lang.String getName()
Description copied from interface:EventListener
Return the id of the listener- Specified by:
getName
in interfaceEventListener
- Returns:
- a
String
object.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListener
Process a sent event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- aIEvent
object.
-
init
public void init()
-
destroy
public void destroy()
-
-