public interface ShardManagerInfoMBean
Modifier and Type | Method and Description |
---|---|
List<String> |
getLocalShards()
Returns the list of all the local shard names.
|
String |
getMemberName()
Returns the name of the local member.
|
boolean |
getSyncStatus()
Returns the overall sync status for all shards.
|
void |
switchAllLocalShardsState(String newBehavior,
long term)
Switches the raft behavior of all the local shards to the newBehavior.
|
void |
switchShardState(String shardName,
String newBehavior,
long term)
Switches the raft behavior of the shard specified by shardName to the newBehavior.
|
List<String> getLocalShards()
boolean getSyncStatus()
String getMemberName()
void switchAllLocalShardsState(String newBehavior, long term)
newBehavior
- should be either Leader/Follower onlyterm
- 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)
shardName
- a shard that is local to this shard managernewBehavior
- should be either Leader/Follower onlyterm
- 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.Copyright © 2019 OpenDaylight. All rights reserved.