Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
RecordWriter<GenericRecord> |
writer
The writer that is used
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
WriterURLThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
TimeUnit timeunitLifecycle,
int capacity,
String url)
Create writer
|
WriterURLThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
TimeUnit timeunitLifecycle,
int capacity,
String url,
String additionalString)
Create writer
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepare()
Initialize the writer
|
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, yieldpublic RecordWriter<GenericRecord> writer
public WriterURLThread(IWriterProxy proxy, int itemsToProduce, int disposePrematurely, long timeoutLifecycle, TimeUnit timeunitLifecycle, int capacity, String url)
proxy - the proxy to use to publishitemsToProduce - the number of items to producedisposePrematurely - if the reader should dispose before completingtimeoutLifecycle - lifecycle timeouttimeunitLifecycle - lifecycle time unitcapacity - the buffer capacityurl - the url of the remote filepublic WriterURLThread(IWriterProxy proxy, int itemsToProduce, int disposePrematurely, long timeoutLifecycle, TimeUnit timeunitLifecycle, int capacity, String url, String additionalString)
proxy - the proxy to use to publishitemsToProduce - the number of items to producedisposePrematurely - if the reader should dispose before completingtimeoutLifecycle - lifecycle timeouttimeunitLifecycle - lifecycle time unitcapacity - the buffer capacityurl - the url of the remote fileadditionalString - string that contains additional information for the remote file retrieval such as certificate location, ssh keys location, filelist to pick specific files from torrent etcCopyright © 2014. All Rights Reserved.