Class AbstractRpcAction
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.admin.command.AbstractRpcAction
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
ActivateEosDatacenterCommand,AddReplicasForAllShardsCommand,AddShardReplicaCommand,BackupDatastoreCommand,ChangeMemberVotingStatesForAllShardsCommand,ChangeMemberVotingStatesForShardCommand,DeactivateEosDatacenterCommand,FlipMemberVotingStatesForAllShardsCommand,GetKnownClientsForAllShardsCommand,GetShardRoleCommand,LocateShardCommand,MakeLeaderLocalCommand,RemoveAllShardReplicasCommand,RemoveShardReplicaCommand
public abstract class AbstractRpcAction extends Object implements org.apache.karaf.shell.api.action.Action
Common base class for all commands which end up invoking an RPC.
-
-
Constructor Summary
Constructors Constructor Description AbstractRpcAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectexecute()protected abstract com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>>invokeRpc()
-
-
-
Method Detail
-
execute
public final Object execute() throws InterruptedException, ExecutionException
- Specified by:
executein interfaceorg.apache.karaf.shell.api.action.Action- Throws:
InterruptedExceptionExecutionException
-
invokeRpc
protected abstract com.google.common.util.concurrent.ListenableFuture<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>> invokeRpc()
-
-