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.
|
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.
|
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
member was voting it becomes non-voting and vice versa.
|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetKnownClientsForAllShardsOutput>> |
getKnownClientsForAllShards(GetKnownClientsForAllShardsInput input)
Request all shards to report their known frontend clients.
|
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<LocateShardOutput>> |
locateShard(LocateShardInput input)
Return the transport-level information about where a shard has a home.
|
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.
|
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 as described 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 as described 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<LocateShardOutput>> locateShard(LocateShardInput input)
ClusterAdminServicelocateShard 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 ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetPrefixShardRoleOutput>> getPrefixShardRole(GetPrefixShardRoleInput input)
ClusterAdminServicegetPrefixShardRole in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<BackupDatastoreOutput>> backupDatastore(BackupDatastoreInput input)
ClusterAdminServicebackupDatastore in interface ClusterAdminServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetKnownClientsForAllShardsOutput>> getKnownClientsForAllShards(GetKnownClientsForAllShardsInput input)
ClusterAdminServicegetKnownClientsForAllShards in interface ClusterAdminServiceCopyright © 2019 OpenDaylight. All rights reserved.