gr.uoa.di.madgik.grs.test
Class WriterURLThread
java.lang.Object
java.lang.Thread
gr.uoa.di.madgik.grs.test.WriterURLThread
- All Implemented Interfaces:
- Runnable
public class WriterURLThread
- extends Thread
Writer test class
- Author:
- gpapanikos
|
Constructor Summary |
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 |
|
Method Summary |
void |
prepare()
Initialize the writer |
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
writer
public RecordWriter<GenericRecord> writer
- The writer that is used
WriterURLThread
public WriterURLThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
TimeUnit timeunitLifecycle,
int capacity,
String url)
- Create writer
- Parameters:
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 file
WriterURLThread
public WriterURLThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
TimeUnit timeunitLifecycle,
int capacity,
String url,
String additionalString)
- Create writer
- Parameters:
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 etc
prepare
public void prepare()
- Initialize the writer
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Copyright © 2012. All Rights Reserved.