org.apache.hadoop.hbase.ipc
Class SecureClient.SecureConnection
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.ipc.HBaseClient.Connection
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.
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 |
SecureClient.SecureConnection
public SecureClient.SecureConnection(HBaseClient.ConnectionId remoteId)
throws IOException
- Throws:
IOException
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 © 2014 The Apache Software Foundation. All Rights Reserved.