org.apache.hadoop.hbase.ipc
Class SecureClient.SecureConnection

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.hadoop.hbase.ipc.HBaseClient.Connection
          extended by org.apache.hadoop.hbase.ipc.SecureClient.SecureConnection
All Implemented Interfaces:
Runnable
Enclosing class:
SecureClient

protected class SecureClient.SecureConnection
extends HBaseClient.Connection

Thread that reads responses and notifies callers. Each connection owns a socket connected to a remote address. Calls are multiplexed through this socket: responses may be delivered out of order.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.HBaseClient.Connection
HBaseClient.Connection.PingInputStream
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.ipc.HBaseClient.Connection
calls, closeException, in, lastActivity, out, remoteId, shouldCloseConnection, socket
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SecureClient.SecureConnection(HBaseClient.ConnectionId remoteId)
           
 
Method Summary
protected  void close()
          Close the connection.
protected  void receiveResponse()
           
protected  void setupIOstreams()
          Connect to the server and set up the I/O streams.
 
Methods inherited from class org.apache.hadoop.hbase.ipc.HBaseClient.Connection
addCall, cleanupCalls, cleanupCalls, closeConnection, getRemoteAddress, markClosed, run, sendParam, sendPing, setupConnection, touch, waitForWork
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecureClient.SecureConnection

public SecureClient.SecureConnection(HBaseClient.ConnectionId remoteId)
                              throws IOException
Throws:
IOException
Method Detail

setupIOstreams

protected void setupIOstreams()
                       throws IOException,
                              InterruptedException
Description copied from class: HBaseClient.Connection
Connect to the server and set up the I/O streams. It then sends a header to the server and starts the connection thread that waits for responses.

Overrides:
setupIOstreams in class HBaseClient.Connection
Throws:
IOException - e
InterruptedException

receiveResponse

protected void receiveResponse()
Overrides:
receiveResponse in class HBaseClient.Connection

close

protected void close()
Close the connection.

Overrides:
close in class HBaseClient.Connection


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