public interface ClusterView
A ClusterView can also consist of just one single instance.
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns an id of this cluster view
|
List<InstanceDescription> |
getInstances()
Provides the list of InstanceDescriptions with a stable ordering.
|
InstanceDescription |
getLeader()
Provides the InstanceDescription belonging to the leader instance.
|
String getId()
List<InstanceDescription> getInstances()
Stable ordering implies that unless an instance leaves the cluster (due to shutdown/crash/network problems) the instance keeps the relative position in the list.
InstanceDescription getLeader()
Every ClusterView is guaranteed to have one and only one leader.
The leader is stable: once a leader is elected it stays leader unless it leaves the cluster (due to shutdown/crash/network problems)
Copyright © 2014 The Apache Software Foundation. All rights reserved.