Class LegacyGraphProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.legacy.LegacyGraphProvider
-
- All Implemented Interfaces:
GraphProvider
public class LegacyGraphProvider extends java.lang.Object implements GraphProvider
-
-
Constructor Summary
Constructors Constructor Description LegacyGraphProvider(MetaTopologyProvider metaTopologyProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphInfo
getGraphInfo()
TheGraphInfo
should be used to provide details of the graph's nature, e.g.ImmutableGraph<?,?>
loadGraph()
Loads the graph, thisGraphProvider
handles.
-
-
-
Constructor Detail
-
LegacyGraphProvider
public LegacyGraphProvider(MetaTopologyProvider metaTopologyProvider)
-
-
Method Detail
-
loadGraph
public ImmutableGraph<?,?> loadGraph()
Description copied from interface:GraphProvider
Loads the graph, thisGraphProvider
handles. Loading may be performed very quickly, but also may take some time.- Specified by:
loadGraph
in interfaceGraphProvider
- Returns:
- The populated graph.
-
getGraphInfo
public GraphInfo getGraphInfo()
Description copied from interface:GraphProvider
TheGraphInfo
should be used to provide details of the graph's nature, e.g. the namespace, label or description AImmutableGraph
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)).- Specified by:
getGraphInfo
in interfaceGraphProvider
- Returns:
- the meta information of the graph
-
-