protected static class HDFSRepositoryConnector.BackgroundStreamThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
abortThread |
protected org.apache.hadoop.fs.Path |
nodeId |
protected Throwable |
responseException |
protected HDFSSession |
session |
protected InputStream |
sourceStream |
protected XThreadInputStream |
threadStream |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
HDFSRepositoryConnector.BackgroundStreamThread(HDFSSession session,
org.apache.hadoop.fs.Path nodeId) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkException(Throwable exception) |
void |
finishUp() |
InputStream |
getSafeInputStream() |
void |
run() |
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
protected final HDFSSession session
protected final org.apache.hadoop.fs.Path nodeId
protected boolean abortThread
protected Throwable responseException
protected InputStream sourceStream
protected XThreadInputStream threadStream
public HDFSRepositoryConnector.BackgroundStreamThread(HDFSSession session, org.apache.hadoop.fs.Path nodeId)
public InputStream getSafeInputStream() throws InterruptedException, IOException
InterruptedException
IOException
public void finishUp() throws InterruptedException, IOException
InterruptedException
IOException
protected void checkException(Throwable exception) throws IOException
IOException