public class ClusterAdminRpcService extends Object implements ClusterAdminService
| Constructor and Description |
|---|
ClusterAdminRpcService(DistributedDataStoreInterface configDataStore,
DistributedDataStoreInterface operDataStore,
org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddPrefixShardReplicaOutput>> |
addPrefixShardReplica(AddPrefixShardReplicaInput input)
Adds a replica of a shard to this node and joins it to an existing cluster.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddReplicasForAllShardsOutput>> |
addReplicasForAllShards(AddReplicasForAllShardsInput input)
Adds replicas on this node for all currently defined shards.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddShardReplicaOutput>> |
addShardReplica(AddShardReplicaInput input)
Adds a replica of a shard to this node and joins it to an existing cluster.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<BackupDatastoreOutput>> |
backupDatastore(BackupDatastoreInput input)
Creates a backup file of the datastore state
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ChangeMemberVotingStatesForAllShardsOutput>> |
changeMemberVotingStatesForAllShards(ChangeMemberVotingStatesForAllShardsInput input)
Changes the voting states, either voting or non-voting, of cluster members for
all shards.Non-voting members will no longer participate in leader elections and
consensus but will bereplicated.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ChangeMemberVotingStatesForShardOutput>> |
changeMemberVotingStatesForShard(ChangeMemberVotingStatesForShardInput input)
Changes the voting states, either voting or non-voting, of cluster members for a
shard.Non-voting members will no longer participate in leader elections and
consensus but will bereplicated.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<FlipMemberVotingStatesForAllShardsOutput>> |
flipMemberVotingStatesForAllShards(FlipMemberVotingStatesForAllShardsInput input)
Flips the voting states of all cluster members for all shards, such that if a
memberwas voting it becomes non-voting and vice versa.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetPrefixShardRoleOutput>> |
getPrefixShardRole(GetPrefixShardRoleInput input)
Returns the current role for the requested module shard.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetShardRoleOutput>> |
getShardRole(GetShardRoleInput input)
Returns the current role for the requested module shard.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<MakeLeaderLocalOutput>> |
makeLeaderLocal(MakeLeaderLocalInput input)
Attempts to move the shard leader of the given module based shard to the local
node.The rpc returns a response after handling of the underlying MakeLeaderLocal
message completes.This operation fails if there is no current shard leader due
to lack of network connectivity ora cluster majority.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveAllShardReplicasOutput>> |
removeAllShardReplicas(RemoveAllShardReplicasInput input)
Removes replicas for all shards on this node.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemovePrefixShardReplicaOutput>> |
removePrefixShardReplica(RemovePrefixShardReplicaInput input)
Removes an existing replica of a prefix shard from this node via the
RemoveServer mechanism asdescribed in the Raft paper.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveShardReplicaOutput>> |
removeShardReplica(RemoveShardReplicaInput input)
Removes an existing replica of a shard from this node via the RemoveServer
mechanism asdescribed in the Raft paper.
|
public ClusterAdminRpcService(DistributedDataStoreInterface configDataStore, DistributedDataStoreInterface operDataStore, org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer serializer)
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddShardReplicaOutput>> addShardReplica(AddShardReplicaInput input)
ClusterAdminServiceaddShardReplica in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveShardReplicaOutput>> removeShardReplica(RemoveShardReplicaInput input)
ClusterAdminServiceremoveShardReplica in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<MakeLeaderLocalOutput>> makeLeaderLocal(MakeLeaderLocalInput input)
ClusterAdminServicemakeLeaderLocal in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddPrefixShardReplicaOutput>> addPrefixShardReplica(AddPrefixShardReplicaInput input)
ClusterAdminServiceaddPrefixShardReplica in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemovePrefixShardReplicaOutput>> removePrefixShardReplica(RemovePrefixShardReplicaInput input)
ClusterAdminServiceremovePrefixShardReplica in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddReplicasForAllShardsOutput>> addReplicasForAllShards(AddReplicasForAllShardsInput input)
ClusterAdminServiceaddReplicasForAllShards in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveAllShardReplicasOutput>> removeAllShardReplicas(RemoveAllShardReplicasInput input)
ClusterAdminServiceremoveAllShardReplicas in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ChangeMemberVotingStatesForShardOutput>> changeMemberVotingStatesForShard(ChangeMemberVotingStatesForShardInput input)
ClusterAdminServicechangeMemberVotingStatesForShard in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ChangeMemberVotingStatesForAllShardsOutput>> changeMemberVotingStatesForAllShards(ChangeMemberVotingStatesForAllShardsInput input)
ClusterAdminServicechangeMemberVotingStatesForAllShards in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<FlipMemberVotingStatesForAllShardsOutput>> flipMemberVotingStatesForAllShards(FlipMemberVotingStatesForAllShardsInput input)
ClusterAdminServiceflipMemberVotingStatesForAllShards in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetShardRoleOutput>> getShardRole(GetShardRoleInput input)
ClusterAdminServicegetShardRole in interface ClusterAdminServicecom.google.common.util.concurrent.ListenableFuture shardRole, or null if not presentpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetPrefixShardRoleOutput>> getPrefixShardRole(GetPrefixShardRoleInput input)
ClusterAdminServicegetPrefixShardRole in interface ClusterAdminServicecom.google.common.util.concurrent.ListenableFuture prefixShardRole, or null if not presentpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<BackupDatastoreOutput>> backupDatastore(BackupDatastoreInput input)
ClusterAdminServicebackupDatastore in interface ClusterAdminServiceCopyright © 2019 OpenDaylight. All rights reserved.