public interface TopologyService
Modifier and Type | Method and Description |
---|---|
boolean |
hasTopology() |
boolean |
isLocalNodeMaster() |
java.util.Optional<java.lang.String> |
masterId() |
java.util.Set<java.lang.String> |
neighbours()
Returns a set of neighbours of the current node.
|
java.util.Optional<org.jgrapht.Graph<java.lang.String,org.jgrapht.graph.DefaultEdge>> |
topologyGraph()
Returns the current topology graph.
|
java.util.Optional<java.lang.String> |
topologyType() |
java.util.Set<java.lang.String> neighbours()
Returns a set of neighbours of the current node.
String
, possibly empty when there is no topology or the node has no neighbours.java.lang.IllegalStateException
- when the topology cannot get the list of neighbours because it has not finished discovery.java.util.Optional<org.jgrapht.Graph<java.lang.String,org.jgrapht.graph.DefaultEdge>> topologyGraph()
Returns the current topology graph.
java.util.Optional<java.lang.String> topologyType()
java.util.Optional<java.lang.String> masterId()
boolean isLocalNodeMaster()
boolean hasTopology()