Package com.github.ambry.clustermap
Interface ClusterMapChangeListener
-
public interface ClusterMapChangeListener
AClusterMap
listener that takes actions on local node when cluster map is changed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
onReplicaAddedOrRemoved(java.util.List<ReplicaId> addedReplicas, java.util.List<ReplicaId> removedReplicas)
Take actions when replicas are added or removed on local node.default void
onRoutingTableChange()
Take actions when there is a routing table update.
-
-
-
Method Detail
-
onReplicaAddedOrRemoved
void onReplicaAddedOrRemoved(java.util.List<ReplicaId> addedReplicas, java.util.List<ReplicaId> removedReplicas)
Take actions when replicas are added or removed on local node.
-
onRoutingTableChange
default void onRoutingTableChange()
Take actions when there is a routing table update. This is triggered whenever there is any change to state of a replicas in the cluster. On this trigger, we can look up the latest states of all the replicas from the routing table snapshotorg.apache.helix.spectator.RoutingTableSnapshot
with the help of various APIs provided in its class.
-
-