org.apache.hadoop.hbase.ipc
Class HbaseRPC.Server

java.lang.Object
  extended by org.apache.hadoop.ipc.Server
      extended by org.apache.hadoop.hbase.ipc.HbaseRPC.Server
Enclosing class:
HbaseRPC

public static class HbaseRPC.Server
extends org.apache.hadoop.ipc.Server

An RPC Server.


Field Summary
 
Fields inherited from class org.apache.hadoop.ipc.Server
CURRENT_VERSION, HEADER, LOG, rpcMetrics
 
Constructor Summary
HbaseRPC.Server(Object instance, org.apache.hadoop.conf.Configuration conf, String bindAddress, int port)
          Construct an RPC server.
HbaseRPC.Server(Object instance, org.apache.hadoop.conf.Configuration conf, String bindAddress, int port, int numHandlers, boolean verbose)
          Construct an RPC server.
 
Method Summary
 org.apache.hadoop.io.Writable call(org.apache.hadoop.io.Writable param, long receivedTime)
           
 
Methods inherited from class org.apache.hadoop.ipc.Server
bind, get, getCallQueueLen, getListenerAddress, getNumOpenConnections, getRemoteAddress, getRemoteIp, join, setSocketSendBufSize, setTimeout, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HbaseRPC.Server

public HbaseRPC.Server(Object instance,
                       org.apache.hadoop.conf.Configuration conf,
                       String bindAddress,
                       int port)
                throws IOException
Construct an RPC server.

Parameters:
instance - the instance whose methods will be called
conf - the configuration to use
bindAddress - the address to bind on to listen for connection
port - the port to listen for connections on
Throws:
IOException

HbaseRPC.Server

public HbaseRPC.Server(Object instance,
                       org.apache.hadoop.conf.Configuration conf,
                       String bindAddress,
                       int port,
                       int numHandlers,
                       boolean verbose)
                throws IOException
Construct an RPC server.

Parameters:
instance - the instance whose methods will be called
conf - the configuration to use
bindAddress - the address to bind on to listen for connection
port - the port to listen for connections on
numHandlers - the number of method handler threads to run
verbose - whether each call should be logged
Throws:
IOException
Method Detail

call

public org.apache.hadoop.io.Writable call(org.apache.hadoop.io.Writable param,
                                          long receivedTime)
                                   throws IOException
Specified by:
call in class org.apache.hadoop.ipc.Server
Throws:
IOException


Copyright © 2008 The Apache Software Foundation