protected class RpcClientImpl.Connection extends Thread
Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected ConcurrentSkipListMap<Integer,Call> |
calls |
protected org.apache.hadoop.hbase.ipc.RpcClientImpl.Connection.CallSender |
callSender |
protected DataInputStream |
in |
protected DataOutputStream |
out |
protected ConnectionId |
remoteId |
protected AtomicBoolean |
shouldCloseConnection |
protected Socket |
socket |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
cleanupCalls(boolean allCalls)
Cleanup the calls older than a given timeout, in milli seconds.
|
protected void |
close()
Close the connection.
|
protected void |
closeConnection() |
InetSocketAddress |
getRemoteAddress() |
protected boolean |
markClosed(IOException e) |
protected boolean |
readResponse() |
void |
run() |
protected void |
setupConnection() |
protected void |
setupIOstreams() |
protected void |
tracedWriteRequest(Call call,
int priority,
org.apache.htrace.Span span) |
protected org.apache.hadoop.hbase.ipc.RpcClientImpl.WaitForWorkResult |
waitForWork() |
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, yieldprotected ConnectionId remoteId
protected Socket socket
protected DataInputStream in
protected DataOutputStream out
protected final ConcurrentSkipListMap<Integer,Call> calls
protected final AtomicBoolean shouldCloseConnection
protected final org.apache.hadoop.hbase.ipc.RpcClientImpl.Connection.CallSender callSender
protected void setupConnection()
throws IOException
IOExceptionprotected void closeConnection()
protected org.apache.hadoop.hbase.ipc.RpcClientImpl.WaitForWorkResult waitForWork()
throws InterruptedException
public InetSocketAddress getRemoteAddress()
protected void setupIOstreams()
throws IOException
IOExceptionprotected void close()
protected void tracedWriteRequest(Call call, int priority, org.apache.htrace.Span span) throws IOException
IOExceptionprotected boolean readResponse()
protected boolean markClosed(IOException e)
protected void cleanupCalls(boolean allCalls)
allCalls - true for all calls, false for only the calls in timeoutCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.