X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fshardmanager%2FShardManagerInfoMBean.java;h=01204ce979b7ebc5262d92d667e31c57c0f3ad97;hb=546cd1fd100dbaa36908b22c2f422320dbd8c4b2;hp=5f34578031a6a677089b1b2893f1a2a87e699170;hpb=768a0cd726150bdf29ad92b12c62ac5652433ef8;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerInfoMBean.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerInfoMBean.java index 5f34578031..01204ce979 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerInfoMBean.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerInfoMBean.java @@ -12,44 +12,48 @@ import java.util.List; public interface ShardManagerInfoMBean { /** + * Returns the list of all the local shard names. * * @return a list of all the local shard names */ List getLocalShards(); /** + * Returns the overall sync status for all shards. * * @return true if all local shards are in sync with their corresponding leaders */ boolean getSyncStatus(); /** - * Get the name of of the current member + * Returns the name of the local member. * - * @return + * @return the local member name */ String getMemberName(); /** - * Switch the Raft Behavior of all the local shards to the newBehavior + * Switches the raft behavior of all the local shards to the newBehavior. * * @param newBehavior should be either Leader/Follower only - * @param term when switching to the Leader specifies for which term the Shard would be the Leader. Any modifications - * made to state will be written with this term. This term will then be used by the Raft replication - * implementation to decide which modifications should stay and which ones should be removed. Ideally - * the term provided when switching to a new Leader should always be higher than the previous term. + * @param term when switching to the Leader specifies for which term the Shard would be the Leader. Any + * modifications made to state will be written with this term. This term will then be used by the Raft + * replication implementation to decide which modifications should stay and which ones should be + * removed. Ideally the term provided when switching to a new Leader should always be higher than the + * previous term. */ void switchAllLocalShardsState(String newBehavior, long term); /** - * Switch the Raft Behavior of the shard specified by shardName to the newBehavior + * Switches the raft behavior of the shard specified by shardName to the newBehavior. * * @param shardName a shard that is local to this shard manager * @param newBehavior should be either Leader/Follower only - * @param term when switching to the Leader specifies for which term the Shard would be the Leader. Any modifications - * made to state will be written with this term. This term will then be used by the Raft replication - * implementation to decide which modifications should stay and which ones should be removed. Ideally - * the term provided when switching to a new Leader should always be higher than the previous term. + * @param term when switching to the Leader specifies for which term the Shard would be the Leader. Any + * modifications made to state will be written with this term. This term will then be used by the Raft + * replication implementation to decide which modifications should stay and which ones should be + * removed. Ideally the term provided when switching to a new Leader should always be higher than the + * previous term. */ void switchShardState(String shardName, String newBehavior, long term); }