Class GraphmlRepositoryImpl
- java.lang.Object
-
- org.opennms.features.graphml.service.impl.GraphmlRepositoryImpl
-
- All Implemented Interfaces:
GraphmlRepository
public class GraphmlRepositoryImpl extends Object implements GraphmlRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
GRAPH_CFG_FILE_PREFIX
protected static String
GRAPH_LOCATION
protected static String
LABEL
protected static String
TOPOLOGY_CFG_FILE_PREFIX
protected static 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 String
buildCfgFilepath(String filename, String cfgFilePrefix)
protected static String
buildGraphCfgFilepath(String filename)
protected static String
buildGraphmlFilepath(String filename)
protected static String
buildTopologyCfgFilepath(String filename)
void
delete(String name)
boolean
exists(String name)
GraphmlType
findByName(String name)
void
save(String name, String label, GraphmlType graphmlType)
-
-
-
Field Detail
-
TOPOLOGY_CFG_FILE_PREFIX
protected static final String TOPOLOGY_CFG_FILE_PREFIX
- See Also:
- Constant Field Values
-
GRAPH_CFG_FILE_PREFIX
protected static final String GRAPH_CFG_FILE_PREFIX
- See Also:
- Constant Field Values
-
TOPOLOGY_LOCATION
protected static final String TOPOLOGY_LOCATION
- See Also:
- Constant Field Values
-
GRAPH_LOCATION
protected static final String GRAPH_LOCATION
- See Also:
- Constant Field Values
-
LABEL
protected static final String LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
findByName
public GraphmlType findByName(String name) throws IOException
- Specified by:
findByName
in interfaceGraphmlRepository
- Throws:
IOException
-
save
public void save(String name, String label, GraphmlType graphmlType) throws IOException
- Specified by:
save
in interfaceGraphmlRepository
- Throws:
IOException
-
delete
public void delete(String name) throws IOException
- Specified by:
delete
in interfaceGraphmlRepository
- Throws:
IOException
-
exists
public boolean exists(String name)
- Specified by:
exists
in interfaceGraphmlRepository
-
-