org.apache.hadoop.hbase.ipc
Interface RpcServerInterface

All Known Implementing Classes:
RpcServer

@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
@InterfaceStability.Evolving
public interface RpcServerInterface

RpcServer Interface. Start calls openServer() and then startThreads(). Prefer start() and stop(). Only use openServer() and startThreads() if in a situation where you could start getting requests though the server not up and fully initiaalized.


Method Summary
 void addCallSize(long diff)
          Add/subtract from the current size of all outstanding calls.
 Pair<com.google.protobuf.Message,CellScanner> call(com.google.protobuf.BlockingService service, com.google.protobuf.Descriptors.MethodDescriptor md, com.google.protobuf.Message param, CellScanner cellScanner, long receiveTime, MonitoredRPCHandler status)
           
 HBaseRPCErrorHandler getErrorHandler()
           
 InetSocketAddress getListenerAddress()
           
 MetricsHBaseServer getMetrics()
          Returns the metrics instance for reporting RPC call statistics
 boolean isStarted()
           
 void join()
           
 void openServer()
           
 void refreshAuthManager(org.apache.hadoop.security.authorize.PolicyProvider pp)
          Refresh authentication manager policy.
 void setErrorHandler(HBaseRPCErrorHandler handler)
           
 void setSocketSendBufSize(int size)
           
 void start()
           
 void startThreads()
           
 void stop()
           
 

Method Detail

start

void start()

openServer

void openServer()

startThreads

void startThreads()

isStarted

boolean isStarted()

stop

void stop()

join

void join()
          throws InterruptedException
Throws:
InterruptedException

setSocketSendBufSize

void setSocketSendBufSize(int size)

getListenerAddress

InetSocketAddress getListenerAddress()

call

Pair<com.google.protobuf.Message,CellScanner> call(com.google.protobuf.BlockingService service,
                                                   com.google.protobuf.Descriptors.MethodDescriptor md,
                                                   com.google.protobuf.Message param,
                                                   CellScanner cellScanner,
                                                   long receiveTime,
                                                   MonitoredRPCHandler status)
                                                   throws IOException,
                                                          com.google.protobuf.ServiceException
Throws:
IOException
com.google.protobuf.ServiceException

setErrorHandler

void setErrorHandler(HBaseRPCErrorHandler handler)

getErrorHandler

HBaseRPCErrorHandler getErrorHandler()

getMetrics

MetricsHBaseServer getMetrics()
Returns the metrics instance for reporting RPC call statistics


addCallSize

void addCallSize(long diff)
Add/subtract from the current size of all outstanding calls. Called on setup of a call to add call total size and then again at end of a call to remove the call size.

Parameters:
diff - Change (plus or minus)

refreshAuthManager

void refreshAuthManager(org.apache.hadoop.security.authorize.PolicyProvider pp)
Refresh authentication manager policy.

Parameters:
pp -


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.