@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
@InterfaceStability.Evolving
public class CallRunner
extends Object
RpcScheduler. Call run() to actually execute the contained
RpcServer.Call| Modifier and Type | Field and Description |
|---|---|
private RpcCall |
call |
private static CallDroppedException |
CALL_DROPPED_EXCEPTION |
private RpcServerInterface |
rpcServer |
private MonitoredRPCHandler |
status |
private boolean |
sucessful |
| Constructor and Description |
|---|
CallRunner(RpcServerInterface rpcServer,
RpcCall call)
On construction, adds the size of this call to the running count of outstanding call sizes.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
cleanup()
Cleanup after ourselves...
|
void |
drop()
When we want to drop this call because of server is overloaded.
|
ServerCall<?> |
getCall()
Deprecated.
As of release 2.0, this will be removed in HBase 3.0
|
RpcCall |
getRpcCall() |
void |
run() |
void |
setStatus(MonitoredRPCHandler status) |
private static final CallDroppedException CALL_DROPPED_EXCEPTION
private RpcServerInterface rpcServer
private MonitoredRPCHandler status
private volatile boolean sucessful
CallRunner(RpcServerInterface rpcServer, RpcCall call)
public RpcCall getRpcCall()
@Deprecated public ServerCall<?> getCall()
public void setStatus(MonitoredRPCHandler status)
private void cleanup()
public void run()
public void drop()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.