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 |
---|---|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
addPrefixShardReplica(AddPrefixShardReplicaInput input)
Adds a replica of a shard to this node and joins it to an existing cluster.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<AddReplicasForAllShardsOutput>> |
addReplicasForAllShards()
Adds replicas on this node for all currently defined shards.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
addShardReplica(AddShardReplicaInput input)
Adds a replica of a shard to this node and joins it to an existing cluster.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
backupDatastore(BackupDatastoreInput input)
Creates a backup file of the datastore state
|
Future<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.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
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.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<FlipMemberVotingStatesForAllShardsOutput>> |
flipMemberVotingStatesForAllShards()
Flips the voting states of all cluster members for all shards, such that if a
memberwas voting it becomes non-voting and vice versa.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetPrefixShardRoleOutput>> |
getPrefixShardRole(GetPrefixShardRoleInput input)
Returns the current role for the requested module shard.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetShardRoleOutput>> |
getShardRole(GetShardRoleInput input)
Returns the current role for the requested module shard.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
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.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveAllShardReplicasOutput>> |
removeAllShardReplicas(RemoveAllShardReplicasInput input)
Removes replicas for all shards on this node.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
removePrefixShardReplica(RemovePrefixShardReplicaInput input)
Removes an existing replica of a prefix shard from this node via the
RemoveServer mechanism asdescribed in the Raft paper.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
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 Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> addShardReplica(AddShardReplicaInput input)
ClusterAdminService
addShardReplica
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> removeShardReplica(RemoveShardReplicaInput input)
ClusterAdminService
removeShardReplica
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> makeLeaderLocal(MakeLeaderLocalInput input)
ClusterAdminService
makeLeaderLocal
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> addPrefixShardReplica(AddPrefixShardReplicaInput input)
ClusterAdminService
addPrefixShardReplica
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> removePrefixShardReplica(RemovePrefixShardReplicaInput input)
ClusterAdminService
removePrefixShardReplica
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<AddReplicasForAllShardsOutput>> addReplicasForAllShards()
ClusterAdminService
addReplicasForAllShards
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveAllShardReplicasOutput>> removeAllShardReplicas(RemoveAllShardReplicasInput input)
ClusterAdminService
removeAllShardReplicas
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> changeMemberVotingStatesForShard(ChangeMemberVotingStatesForShardInput input)
ClusterAdminService
changeMemberVotingStatesForShard
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<ChangeMemberVotingStatesForAllShardsOutput>> changeMemberVotingStatesForAllShards(ChangeMemberVotingStatesForAllShardsInput input)
ClusterAdminService
changeMemberVotingStatesForAllShards
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<FlipMemberVotingStatesForAllShardsOutput>> flipMemberVotingStatesForAllShards()
ClusterAdminService
flipMemberVotingStatesForAllShards
in interface ClusterAdminService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<GetShardRoleOutput>> getShardRole(GetShardRoleInput input)
ClusterAdminService
getShardRole
in interface ClusterAdminService
java.util.concurrent.Future
shardRole
, or null
if not presentpublic Future<org.opendaylight.yangtools.yang.common.RpcResult<GetPrefixShardRoleOutput>> getPrefixShardRole(GetPrefixShardRoleInput input)
ClusterAdminService
getPrefixShardRole
in interface ClusterAdminService
java.util.concurrent.Future
prefixShardRole
, or null
if not presentpublic Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> backupDatastore(BackupDatastoreInput input)
ClusterAdminService
backupDatastore
in interface ClusterAdminService
Copyright © 2019 OpenDaylight. All rights reserved.