org.apache.hadoop.hbase.ipc
Interface RpcServer
- All Known Implementing Classes:
- HBaseServer
public interface RpcServer
setSocketSendBufSize
void setSocketSendBufSize(int size)
start
void start()
stop
void stop()
join
void join()
throws InterruptedException
- Throws:
InterruptedException
getListenerAddress
InetSocketAddress getListenerAddress()
call
org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol,
org.apache.hadoop.io.Writable param,
long receiveTime,
MonitoredRPCHandler status)
throws IOException
- Called for each call.
- Parameters:
param
- writable parameterreceiveTime
- time
- Returns:
- Writable
- Throws:
IOException
- e
getNumOpenConnections
int getNumOpenConnections()
getCallQueueLen
int getCallQueueLen()
setErrorHandler
void setErrorHandler(HBaseRPCErrorHandler handler)
setQosFunction
void setQosFunction(com.google.common.base.Function<org.apache.hadoop.io.Writable,Integer> newFunc)
openServer
void openServer()
startThreads
void startThreads()
getRpcMetrics
HBaseRpcMetrics getRpcMetrics()
- Returns the metrics instance for reporting RPC call statistics
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.