gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc
Class QueryJdbcWorker
java.lang.Object
java.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.QueryJdbcWorker
- All Implemented Interfaces:
- Runnable
public class QueryJdbcWorker
- extends Thread
Worker Thread that continues to update the produced ResultSet in the background
- Author:
- UoA
|
Method Summary |
URI |
getLocator()
retrieves the writer this thread is populating |
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 |
QueryJdbcWorker
public QueryJdbcWorker(ResultSet rs,
String[] columnNames,
String UniqueDocId,
gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
- Creates a new
QueryJdbcWorker
- Parameters:
rs - the db ResultSetcolumnNames - The names of the colums in the db tableUniqueDocId - A string that will make the ids of the produced records uniquewriter - The writer to usetimeout - The timeout to be used both by the writertimeUnit - The unit of the timeout to be usedstats - stats
getLocator
public URI getLocator()
- retrieves the writer this thread is populating
- Returns:
- the writer
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
- See Also:
Runnable.run()
Copyright © 2013. All Rights Reserved.