Class PersistenceGraphContainerProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.persistence.PersistenceGraphContainerProvider
-
- All Implemented Interfaces:
GraphContainerProvider
public class PersistenceGraphContainerProvider extends java.lang.Object implements GraphContainerProvider
ThisGraphContainerProvider
is an example on how to use theGraphRepository
within a provider.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Constructor Description PersistenceGraphContainerProvider(GraphRepository graphRepository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static GraphContainerInfo
createContainerInfo()
GraphContainerInfo
getContainerInfo()
InvokingGraphContainerProvider.loadGraphContainer()
may take some time, so it is not feasible to invoke it, if only the meta data of the container is requested.void
init()
ImmutableGraphContainer
loadGraphContainer()
Returns a fully loadedImmutableGraphContainer
object, containing ALL vertices and edges.
-
-
-
Constructor Detail
-
PersistenceGraphContainerProvider
public PersistenceGraphContainerProvider(GraphRepository graphRepository)
-
-
Method Detail
-
loadGraphContainer
public ImmutableGraphContainer loadGraphContainer()
Description copied from interface:GraphContainerProvider
Returns a fully loadedImmutableGraphContainer
object, containing ALL vertices and edges. May be slow.- Specified by:
loadGraphContainer
in interfaceGraphContainerProvider
- Returns:
- The populated container
-
getContainerInfo
public GraphContainerInfo getContainerInfo()
Description copied from interface:GraphContainerProvider
InvokingGraphContainerProvider.loadGraphContainer()
may take some time, so it is not feasible to invoke it, if only the meta data of the container is requested. Therefore theGraphContainerProvider.getContainerInfo()
should return very quickly with the meta data of the container and its graphs.- Specified by:
getContainerInfo
in interfaceGraphContainerProvider
- Returns:
- The container's meta data
-
init
public void init()
-
createContainerInfo
protected static GraphContainerInfo createContainerInfo()
-
-