Package org.opennms.netmgt.graph.service
Class SingleGraphContainerProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.service.SingleGraphContainerProvider
-
- All Implemented Interfaces:
GraphContainerProvider
public class SingleGraphContainerProvider extends Object implements GraphContainerProvider
-
-
Constructor Summary
Constructors Constructor Description SingleGraphContainerProvider(GraphProvider graphProvider, GraphContainerInfo containerInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ImmutableGraphContainerloadGraphContainer()Returns a fully loadedImmutableGraphContainerobject, containing ALL vertices and edges.
-
-
-
Constructor Detail
-
SingleGraphContainerProvider
public SingleGraphContainerProvider(GraphProvider graphProvider, GraphContainerInfo containerInfo)
-
-
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
-
-