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 java.lang.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 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.ImmutableGraphContainer
loadGraphContainer()
Returns a fully loadedImmutableGraphContainer
object, containing ALL vertices and edges.
-
-
-
Constructor Detail
-
SingleGraphContainerProvider
public SingleGraphContainerProvider(GraphProvider graphProvider, GraphContainerInfo containerInfo)
-
-
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
-
-