@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public abstract class RpcScheduler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RpcScheduler.Context
Exposes runtime information of a
RpcServer that a RpcScheduler may need. |
Constructor and Description |
---|
RpcScheduler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dispatch(CallRunner task)
Dispatches an RPC request asynchronously.
|
abstract int |
getActiveRpcHandlerCount()
Retrieves the number of active handler.
|
abstract int |
getGeneralQueueLength()
Retrieves length of the general queue for metrics.
|
abstract int |
getPriorityQueueLength()
Retrieves length of the priority queue for metrics.
|
abstract int |
getReplicationQueueLength()
Retrieves length of the replication queue for metrics.
|
abstract void |
init(RpcScheduler.Context context)
Does some quick initialization.
|
abstract void |
start()
Prepares for request serving.
|
abstract void |
stop()
Stops serving new requests.
|
public abstract void init(RpcScheduler.Context context)
start()
. This method is called before start
.context
- provides methods to retrieve runtime information frompublic abstract void start()
public abstract void stop()
public abstract void dispatch(CallRunner task) throws IOException, InterruptedException
task
- the request to be dispatchedIOException
InterruptedException
public abstract int getGeneralQueueLength()
public abstract int getPriorityQueueLength()
public abstract int getReplicationQueueLength()
public abstract int getActiveRpcHandlerCount()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.