org.apache.hadoop.hbase.ipc
Interface RpcServer

All Known Implementing Classes:
HBaseServer, SecureRpcEngine.Server, SecureServer

public interface RpcServer


Method Summary
 org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol, org.apache.hadoop.io.Writable param, long receiveTime, MonitoredRPCHandler status)
          Called for each call.
 InetSocketAddress getListenerAddress()
           
 HBaseRpcMetrics getRpcMetrics()
          Returns the metrics instance for reporting RPC call statistics
 void join()
           
 void openServer()
           
 void setErrorHandler(HBaseRPCErrorHandler handler)
           
 void setQosFunction(com.google.common.base.Function<org.apache.hadoop.io.Writable,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

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 parameter
receiveTime - time
Returns:
Writable
Throws:
IOException - e

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.