public interface DiscoveryService
Discovery service is responsible for collecting info about other nodes in the cluster and providing it to other services.
Modifier and Type | Method and Description |
---|---|
java.util.Set<NodeDescriptor> |
allMembers()
Returns
NodeDescriptor s of all cluster members. |
java.util.Set<NodeDescriptor> |
membersMatching(java.lang.String criteria)
Returns
NodeDescriptor s of cluster members matching the given criteria. |
java.util.Optional<NodeDescriptor> |
memberWithId(java.lang.String id)
Returns
NodeDescriptor for the node with the given ID. |
java.util.Set<NodeDescriptor> membersMatching(java.lang.String criteria)
Returns NodeDescriptor
s of cluster members matching the given criteria.
criteria
- Criteria in the form of SQL query.SqlPredicate
java.util.Set<NodeDescriptor> allMembers()
Returns NodeDescriptor
s of all cluster members.
java.util.Optional<NodeDescriptor> memberWithId(java.lang.String id)
Returns NodeDescriptor
for the node with the given ID.
id
- an ID to look up.