org.apache.hadoop.yarn.ipc
Class ProtoOverHadoopRpcEngine.Server

java.lang.Object
  extended by org.apache.hadoop.ipc.Server
      extended by org.apache.hadoop.ipc.RPC.Server
          extended by org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine.Server
Enclosing class:
ProtoOverHadoopRpcEngine

public static class ProtoOverHadoopRpcEngine.Server
extends org.apache.hadoop.ipc.RPC.Server


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.ipc.Server
org.apache.hadoop.ipc.Server.Connection
 
Field Summary
 
Fields inherited from class org.apache.hadoop.ipc.Server
AUDITLOG, CURRENT_VERSION, HEADER, LOG, rpcDetailedMetrics, rpcMetrics
 
Constructor Summary
ProtoOverHadoopRpcEngine.Server(Object instance, org.apache.hadoop.conf.Configuration conf, String bindAddress, int port, int numHandlers, int numReaders, int queueSizePerHandler, boolean verbose, org.apache.hadoop.security.token.SecretManager<? extends org.apache.hadoop.security.token.TokenIdentifier> secretManager, String portRangeConfig)
          Construct an RPC server.
 
Method Summary
 org.apache.hadoop.io.Writable call(Class<?> protocol, org.apache.hadoop.io.Writable writableRequest, long receiveTime)
           
 
Methods inherited from class org.apache.hadoop.ipc.Server
authorize, bind, bind, call, get, getCallQueueLen, getListenerAddress, getMaxQueueSize, getNumOpenConnections, getNumReaders, getPort, getRemoteAddress, getRemoteIp, getRpcDetailedMetrics, getRpcMetrics, getServiceAuthorizationManager, isRpcInvocation, join, refreshServiceAcl, setSocketSendBufSize, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoOverHadoopRpcEngine.Server

public ProtoOverHadoopRpcEngine.Server(Object instance,
                                       org.apache.hadoop.conf.Configuration conf,
                                       String bindAddress,
                                       int port,
                                       int numHandlers,
                                       int numReaders,
                                       int queueSizePerHandler,
                                       boolean verbose,
                                       org.apache.hadoop.security.token.SecretManager<? extends org.apache.hadoop.security.token.TokenIdentifier> secretManager,
                                       String portRangeConfig)
                                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
portRangeConfig - an optional config value used to limit ephemeral port ranges.
Throws:
IOException
Method Detail

call

public org.apache.hadoop.io.Writable call(Class<?> protocol,
                                          org.apache.hadoop.io.Writable writableRequest,
                                          long receiveTime)
                                   throws IOException
Specified by:
call in class org.apache.hadoop.ipc.Server
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.