org.apache.hadoop.hbase.ipc
Interface RpcServer

All Known Implementing Classes:
HBaseServer

@InterfaceAudience.Private
public interface RpcServer


Method Summary
 Pair<com.google.protobuf.Message,CellScanner> call(Class<? extends IpcProtocol> protocol, Method method, com.google.protobuf.Message param, CellScanner cellScanner, long receiveTime, MonitoredRPCHandler status)
          Called for each call.
 InetSocketAddress getListenerAddress()
           
 MetricsHBaseServer getMetrics()
          Returns the metrics instance for reporting RPC call statistics
 void join()
           
 void openServer()
           
 void setErrorHandler(HBaseRPCErrorHandler handler)
           
 void setQosFunction(com.google.common.base.Function<Pair<RPCProtos.RequestHeader,com.google.protobuf.Message>,Integer> newFunc)
           
 void setSocketSendBufSize(int size)
           
 void start()
           
 void startThreads()
           
 void stop()
           
 

Method Detail

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 - parameter
receiveTime - time
status -
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.