Class BusinessServiceGraphProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.bsm.BusinessServiceGraphProvider
-
- All Implemented Interfaces:
EventListener,GraphProvider
public class BusinessServiceGraphProvider extends 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 voiddestroy()GraphInfogetGraphInfo()TheGraphInfoshould be used to provide details of the graph's nature, e.g.StringgetName()Return the id of the listenervoidinit()ImmutableGraph<?,?>loadGraph()Loads the graph, thisGraphProviderhandles.voidonEvent(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:GraphProviderLoads the graph, thisGraphProviderhandles. Loading may be performed very quickly, but also may take some time.- Specified by:
loadGraphin interfaceGraphProvider- Returns:
- The populated graph.
-
getGraphInfo
public GraphInfo getGraphInfo()
Description copied from interface:GraphProviderTheGraphInfoshould be used to provide details of the graph's nature, e.g. the namespace, label or description AImmutableGraphshould 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:
getGraphInfoin interfaceGraphProvider- Returns:
- the meta information of the graph
-
getName
public String getName()
Description copied from interface:EventListenerReturn the id of the listener- Specified by:
getNamein interfaceEventListener- Returns:
- a
Stringobject.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListenerProcess a sent event.- Specified by:
onEventin interfaceEventListener- Parameters:
e- aIEventobject.
-
init
public void init()
-
destroy
public void destroy()
-
-