public class BusinessServiceGraphProvider extends Object implements GraphProvider, EventListener
Constructor and Description |
---|
BusinessServiceGraphProvider(GraphContainerCache graphContainerCache,
BusinessServiceManager businessServiceManager,
EventIpcManager eventIpcManager) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
GraphInfo |
getGraphInfo()
The
GraphInfo should be used to provide details of the graph's nature, e.g. |
String |
getName()
Return the id of the listener
|
void |
init() |
ImmutableGraph<?,?> |
loadGraph()
Loads the graph, this
GraphProvider handles. |
void |
onEvent(IEvent e)
Process a sent event.
|
public BusinessServiceGraphProvider(GraphContainerCache graphContainerCache, BusinessServiceManager businessServiceManager, EventIpcManager eventIpcManager)
public ImmutableGraph<?,?> loadGraph()
GraphProvider
GraphProvider
handles.
Loading may be performed very quickly, but also may take some time.loadGraph
in interface GraphProvider
public GraphInfo getGraphInfo()
GraphProvider
GraphInfo
should be used to provide details of the graph's nature, e.g. the namespace, label or description
A ImmutableGraph
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)).getGraphInfo
in interface GraphProvider
public String getName()
EventListener
getName
in interface EventListener
String
object.public void onEvent(IEvent e)
EventListener
onEvent
in interface EventListener
e
- a IEvent
object.public void init()
public void destroy()
Copyright © 2021. All rights reserved.