org.apache.hadoop.hbase.ipc
Interface RpcServer
- All Known Implementing Classes:
- HBaseServer
@InterfaceAudience.Private
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
Pair<com.google.protobuf.Message,CellScanner> call(Class<? extends IpcProtocol> protocol,
Method method,
com.google.protobuf.Message param,
CellScanner cellScanner,
long receiveTime,
MonitoredRPCHandler status)
throws IOException
- Called for each call.
- Parameters:
method
- Method to invoke.param
- parameterreceiveTime
- timestatus
-
- Returns:
- Message Protobuf response Message and optionally the Cells that make up the response.
- Throws:
IOException
- e
setErrorHandler
void setErrorHandler(HBaseRPCErrorHandler handler)
openServer
void openServer()
startThreads
void startThreads()
getMetrics
MetricsHBaseServer getMetrics()
- Returns the metrics instance for reporting RPC call statistics
setQosFunction
void setQosFunction(com.google.common.base.Function<Pair<RPCProtos.RequestHeader,com.google.protobuf.Message>,Integer> newFunc)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.