Package org.opennms.enlinkd.generator
Class TopologyGenerator
- java.lang.Object
-
- org.opennms.enlinkd.generator.TopologyGenerator
-
public class TopologyGenerator extends Object
Can be used to generate a Linkd Topology for testing purposes. Usage:TopologyGenerator generator = TopologyGenerator.builder() .persister(topologyPersister) ... .build(); generator.generateTopology(); // create a topology // do something with it generator.deleteTopology(); // delete it again
The generated nodes will belong to the category "GeneratedNode".
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopologyGenerator.ProgressCallback
Used to record the current progress of the generation.static class
TopologyGenerator.Protocol
static class
TopologyGenerator.Topology
static class
TopologyGenerator.TopologyGeneratorBuilder
-
Field Summary
Fields Modifier and Type Field Description static String
CATEGORY_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TopologyGenerator.TopologyGeneratorBuilder
builder()
void
deleteTopology()
void
generateTopology(TopologySettings topologySettings)
-
-
-
Field Detail
-
CATEGORY_NAME
public static final String CATEGORY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static TopologyGenerator.TopologyGeneratorBuilder builder()
-
generateTopology
public void generateTopology(TopologySettings topologySettings)
-
deleteTopology
public void deleteTopology()
-
-