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 StringGRAPH_CFG_FILE_PREFIXprotected static StringGRAPH_LOCATIONprotected static StringLABELprotected static StringTOPOLOGY_CFG_FILE_PREFIXprotected static 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 StringbuildCfgFilepath(String filename, String cfgFilePrefix)protected static StringbuildGraphCfgFilepath(String filename)protected static StringbuildGraphmlFilepath(String filename)protected static StringbuildTopologyCfgFilepath(String filename)voiddelete(String name)booleanexists(String name)GraphmlTypefindByName(String name)voidsave(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:
findByNamein interfaceGraphmlRepository- Throws:
IOException
-
save
public void save(String name, String label, GraphmlType graphmlType) throws IOException
- Specified by:
savein interfaceGraphmlRepository- Throws:
IOException
-
delete
public void delete(String name) throws IOException
- Specified by:
deletein interfaceGraphmlRepository- Throws:
IOException
-
exists
public boolean exists(String name)
- Specified by:
existsin interfaceGraphmlRepository
-
-