Class GraphmlRepositoryImpl
- java.lang.Object
-
- org.opennms.features.graphml.service.impl.GraphmlRepositoryImpl
-
- All Implemented Interfaces:
GraphmlRepository
public class GraphmlRepositoryImpl extends java.lang.Object implements GraphmlRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringGRAPH_CFG_FILE_PREFIXprotected static java.lang.StringGRAPH_LOCATIONprotected static java.lang.StringLABELprotected static java.lang.StringTOPOLOGY_CFG_FILE_PREFIXprotected static java.lang.StringTOPOLOGY_LOCATION
-
Constructor Summary
Constructors Constructor Description GraphmlRepositoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringbuildCfgFilepath(java.lang.String filename, java.lang.String cfgFilePrefix)protected static java.lang.StringbuildGraphCfgFilepath(java.lang.String filename)protected static java.lang.StringbuildGraphmlFilepath(java.lang.String filename)protected static java.lang.StringbuildTopologyCfgFilepath(java.lang.String filename)voiddelete(java.lang.String name)booleanexists(java.lang.String name)GraphmlTypefindByName(java.lang.String name)voidsave(java.lang.String name, java.lang.String label, GraphmlType graphmlType)
-
-
-
Field Detail
-
TOPOLOGY_CFG_FILE_PREFIX
protected static final java.lang.String TOPOLOGY_CFG_FILE_PREFIX
- See Also:
- Constant Field Values
-
GRAPH_CFG_FILE_PREFIX
protected static final java.lang.String GRAPH_CFG_FILE_PREFIX
- See Also:
- Constant Field Values
-
TOPOLOGY_LOCATION
protected static final java.lang.String TOPOLOGY_LOCATION
- See Also:
- Constant Field Values
-
GRAPH_LOCATION
protected static final java.lang.String GRAPH_LOCATION
- See Also:
- Constant Field Values
-
LABEL
protected static final java.lang.String LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
findByName
public GraphmlType findByName(java.lang.String name) throws java.io.IOException
- Specified by:
findByNamein interfaceGraphmlRepository- Throws:
java.io.IOException
-
save
public void save(java.lang.String name, java.lang.String label, GraphmlType graphmlType) throws java.io.IOException- Specified by:
savein interfaceGraphmlRepository- Throws:
java.io.IOException
-
delete
public void delete(java.lang.String name) throws java.io.IOException- Specified by:
deletein interfaceGraphmlRepository- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
existsin interfaceGraphmlRepository
-
buildCfgFilepath
protected static java.lang.String buildCfgFilepath(java.lang.String filename, java.lang.String cfgFilePrefix)
-
buildTopologyCfgFilepath
protected static java.lang.String buildTopologyCfgFilepath(java.lang.String filename)
-
buildGraphCfgFilepath
protected static java.lang.String buildGraphCfgFilepath(java.lang.String filename)
-
buildGraphmlFilepath
protected static java.lang.String buildGraphmlFilepath(java.lang.String filename)
-
-