Class PersistenceGraphContainerProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.persistence.PersistenceGraphContainerProvider
-
- All Implemented Interfaces:
GraphContainerProvider
public class PersistenceGraphContainerProvider extends Object implements GraphContainerProvider
ThisGraphContainerProvideris an example on how to use theGraphRepositorywithin 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 GraphContainerInfocreateContainerInfo()GraphContainerInfogetContainerInfo()InvokingGraphContainerProvider.loadGraphContainer()may take some time, so it is not feasible to invoke it, if only the meta data of the container is requested.voidinit()ImmutableGraphContainerloadGraphContainer()Returns a fully loadedImmutableGraphContainerobject, containing ALL vertices and edges.
-
-
-
Constructor Detail
-
PersistenceGraphContainerProvider
public PersistenceGraphContainerProvider(GraphRepository graphRepository)
-
-
Method Detail
-
loadGraphContainer
public ImmutableGraphContainer loadGraphContainer()
Description copied from interface:GraphContainerProviderReturns a fully loadedImmutableGraphContainerobject, containing ALL vertices and edges. May be slow.- Specified by:
loadGraphContainerin interfaceGraphContainerProvider- Returns:
- The populated container
-
getContainerInfo
public GraphContainerInfo getContainerInfo()
Description copied from interface:GraphContainerProviderInvokingGraphContainerProvider.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:
getContainerInfoin interfaceGraphContainerProvider- Returns:
- The container's meta data
-
init
public void init()
-
createContainerInfo
protected static GraphContainerInfo createContainerInfo()
-
-