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

java.lang.Object
  extended by org.apache.hadoop.hbase.ipc.HBaseServer
      extended by org.apache.hadoop.hbase.ipc.SecureServer
          extended by org.apache.hadoop.hbase.ipc.SecureRpcEngine.Server
All Implemented Interfaces:
RpcServer
Enclosing class:
SecureRpcEngine

public static class SecureRpcEngine.Server
extends SecureServer

An RPC Server.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.SecureServer
SecureServer.SecureCall, SecureServer.SecureConnection
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.HBaseServer
HBaseServer.Call, HBaseServer.Connection, HBaseServer.Responder
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.ipc.SecureServer
authManager, CURRENT_VERSION, HEADER, INSECURE_VERSIONS, LOG, secretManager
 
Fields inherited from class org.apache.hadoop.hbase.ipc.HBaseServer
bindAddress, callQueue, callQueueSize, conf, connectionList, CurCall, errorHandler, highPriorityLevel, maxIdleTime, numConnections, paramClass, port, priorityCallQueue, purgeTimeout, replicationQueue, responder, rpcMetrics, running, SERVER, socketSendBufferSize, tcpKeepAlive, tcpNoDelay, thresholdIdleConnections, TRACELOG
 
Constructor Summary
SecureRpcEngine.Server(Object instance, Class<?>[] ifaces, org.apache.hadoop.conf.Configuration conf, String bindAddress, int port, int numHandlers, int metaHandlerCount, boolean verbose, int highPriorityLevel)
          Construct an RPC server.
 
Method Summary
 org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol, org.apache.hadoop.io.Writable param, long receivedTime, MonitoredRPCHandler status)
          Called for each call.
 AuthenticationTokenSecretManager createSecretManager()
           
 void startThreads()
          Starts the service threads but does not allow requests to be responded yet.
 
Methods inherited from class org.apache.hadoop.hbase.ipc.SecureServer
authorize, getConnection, getSecretManager, setSecretManager, stop
 
Methods inherited from class org.apache.hadoop.hbase.ipc.HBaseServer
bind, channelRead, channelWrite, closeConnection, get, getCurrentCall, getListenerAddress, getQosLevel, getRemoteAddress, getRemoteIp, getResponseQueueSize, getRpcMetrics, join, openServer, setErrorHandler, setQosFunction, setSocketSendBufSize, start, updateCallQueueLenMetrics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureRpcEngine.Server

public SecureRpcEngine.Server(Object instance,
                              Class<?>[] ifaces,
                              org.apache.hadoop.conf.Configuration conf,
                              String bindAddress,
                              int port,
                              int numHandlers,
                              int metaHandlerCount,
                              boolean verbose,
                              int highPriorityLevel)
                       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 - e
Method Detail

createSecretManager

public AuthenticationTokenSecretManager createSecretManager()

startThreads

public void startThreads()
Description copied from class: HBaseServer
Starts the service threads but does not allow requests to be responded yet. Client will get ServerNotRunningYetException instead.

Specified by:
startThreads in interface RpcServer
Overrides:
startThreads in class HBaseServer

call

public org.apache.hadoop.io.Writable call(Class<? extends VersionedProtocol> protocol,
                                          org.apache.hadoop.io.Writable param,
                                          long receivedTime,
                                          MonitoredRPCHandler status)
                                   throws IOException
Description copied from interface: RpcServer
Called for each call.

param - writable parameter
receivedTime - time
Returns:
Writable
Throws:
IOException - e


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.