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.String
GRAPH_CFG_FILE_PREFIX
protected static java.lang.String
GRAPH_LOCATION
protected static java.lang.String
LABEL
protected static java.lang.String
TOPOLOGY_CFG_FILE_PREFIX
protected static java.lang.String
TOPOLOGY_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.String
buildCfgFilepath(java.lang.String filename, java.lang.String cfgFilePrefix)
protected static java.lang.String
buildGraphCfgFilepath(java.lang.String filename)
protected static java.lang.String
buildGraphmlFilepath(java.lang.String filename)
protected static java.lang.String
buildTopologyCfgFilepath(java.lang.String filename)
void
delete(java.lang.String name)
boolean
exists(java.lang.String name)
GraphmlType
findByName(java.lang.String name)
void
save(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:
findByName
in 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:
save
in interfaceGraphmlRepository
- Throws:
java.io.IOException
-
delete
public void delete(java.lang.String name) throws java.io.IOException
- Specified by:
delete
in interfaceGraphmlRepository
- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
exists
in 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)
-
-