public class DelegatingRpcScheduler extends RpcScheduler
RpcScheduler.Context| Modifier and Type | Field and Description |
|---|---|
protected RpcScheduler |
delegate |
IPC_SERVER_MAX_CALLQUEUE_LENGTH, IPC_SERVER_PRIORITY_MAX_CALLQUEUE_LENGTH| Constructor and Description |
|---|
DelegatingRpcScheduler(RpcScheduler delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(CallRunner task) |
int |
getActiveReadRpcHandlerCount() |
int |
getActiveRpcHandlerCount() |
int |
getActiveScanRpcHandlerCount() |
int |
getActiveWriteRpcHandlerCount() |
CallQueueInfo |
getCallQueueInfo() |
int |
getGeneralQueueLength() |
long |
getNumGeneralCallsDropped() |
long |
getNumLifoModeSwitches() |
int |
getPriorityQueueLength() |
int |
getReadQueueLength() |
int |
getReplicationQueueLength() |
int |
getScanQueueLength() |
int |
getWriteQueueLength() |
void |
init(RpcScheduler.Context context) |
void |
start() |
void |
stop() |
protected RpcScheduler delegate
public DelegatingRpcScheduler(RpcScheduler delegate)
public void stop()
stop in class RpcSchedulerpublic void start()
start in class RpcSchedulerpublic void init(RpcScheduler.Context context)
init in class RpcSchedulerpublic int getReplicationQueueLength()
getReplicationQueueLength in class RpcSchedulerpublic int getPriorityQueueLength()
getPriorityQueueLength in class RpcSchedulerpublic int getGeneralQueueLength()
getGeneralQueueLength in class RpcSchedulerpublic int getActiveRpcHandlerCount()
getActiveRpcHandlerCount in class RpcSchedulerpublic boolean dispatch(CallRunner task) throws IOException, InterruptedException
dispatch in class RpcSchedulerIOExceptionInterruptedExceptionpublic long getNumGeneralCallsDropped()
getNumGeneralCallsDropped in class RpcSchedulerpublic long getNumLifoModeSwitches()
getNumLifoModeSwitches in class RpcSchedulerpublic int getWriteQueueLength()
getWriteQueueLength in class RpcSchedulerpublic int getReadQueueLength()
getReadQueueLength in class RpcSchedulerpublic int getScanQueueLength()
getScanQueueLength in class RpcSchedulerpublic int getActiveWriteRpcHandlerCount()
getActiveWriteRpcHandlerCount in class RpcSchedulerpublic int getActiveReadRpcHandlerCount()
getActiveReadRpcHandlerCount in class RpcSchedulerpublic int getActiveScanRpcHandlerCount()
getActiveScanRpcHandlerCount in class RpcSchedulerpublic CallQueueInfo getCallQueueInfo()
getCallQueueInfo in class RpcSchedulerCopyright © 2007–2019 Cloudera. All rights reserved.