protected static class HDFSRepositoryConnector.BackgroundStreamThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abortThread |
protected org.apache.hadoop.fs.Path |
nodeId |
protected java.lang.Throwable |
responseException |
protected HDFSSession |
session |
protected java.io.InputStream |
sourceStream |
protected org.apache.manifoldcf.connectorcommon.common.XThreadInputStream |
threadStream |
| Constructor and Description |
|---|
BackgroundStreamThread(HDFSSession session,
org.apache.hadoop.fs.Path nodeId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkException(java.lang.Throwable exception) |
void |
finishUp() |
java.io.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, yieldprotected final HDFSSession session
protected final org.apache.hadoop.fs.Path nodeId
protected boolean abortThread
protected java.lang.Throwable responseException
protected java.io.InputStream sourceStream
protected org.apache.manifoldcf.connectorcommon.common.XThreadInputStream threadStream
public BackgroundStreamThread(HDFSSession session, org.apache.hadoop.fs.Path nodeId)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.io.InputStream getSafeInputStream()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionpublic void finishUp()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionprotected void checkException(java.lang.Throwable exception)
throws java.io.IOException
java.io.IOException