|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
gr.uoa.di.madgik.grs.test.WriterFileThread
public class WriterFileThread
Writer test class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
RecordWriter<GenericRecord> |
writer
The writer that is used |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
WriterFileThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
java.util.concurrent.TimeUnit timeunitLifecycle,
java.lang.String fileName,
IBuffer.TransportDirective directive,
boolean doCompress,
int capacity)
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public RecordWriter<GenericRecord> writer
Constructor Detail |
---|
public WriterFileThread(IWriterProxy proxy, int itemsToProduce, int disposePrematurely, long timeoutLifecycle, java.util.concurrent.TimeUnit timeunitLifecycle, java.lang.String fileName, IBuffer.TransportDirective directive, boolean doCompress, int capacity)
proxy
- the proxy to use to publishitemsToProduce
- the number of items to producedisposePrematurely
- if the reader should dispose before completingtimeoutLifecycle
- lifecycle timeouttimeunitLifecycle
- lifecycle time unitfileName
- the file name to include in fielddirective
- the record directivedoCompress
- do compression in transportcapacity
- the buffer capacityMethod Detail |
---|
public void prepare()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |