gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform
Class TransformWorker<T extends gr.uoa.di.madgik.grs.record.Record>

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.transform.TransformWorker<T>
All Implemented Interfaces:
Runnable

public class TransformWorker<T extends gr.uoa.di.madgik.grs.record.Record>
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TransformWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader, gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, String payloadFieldName, String xslt, StatsContainer stats, long timeout, TimeUnit timeUnit)
           
 
Method Summary
 void run()
          Performs the transform operation
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformWorker

public TransformWorker(gr.uoa.di.madgik.grs.reader.IRecordReader<T> reader,
                       gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
                       String payloadFieldName,
                       String xslt,
                       StatsContainer stats,
                       long timeout,
                       TimeUnit timeUnit)
Parameters:
reader - The IRecordReader to consume records from
writer - The IRecordWriter which will be used to write the output
payloadFieldName - The name of the Field containing the payload on which the transformation will be applied
xslt - The XSLT to apply on each record field
stats - Statistics
timeout - The timeout which will be used both by the reader and the writer
timeUnit - The unit of the timeout which will be used
Method Detail

run

public void run()
Performs the transform operation

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2013. All Rights Reserved.