gr.uoa.di.madgik.searchlibrary.operatorlibrary.google
Class QueryGoogleWorker

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.google.QueryGoogleWorker
All Implemented Interfaces:
Runnable

public class QueryGoogleWorker
extends Thread

Worker Thread that continues to update the produced org.gcube.searchservice.searchlibrary.resultset.ResultSet in the background

Author:
UoA

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
QueryGoogleWorker(String searchString, int resNo, gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer, long timeout, TimeUnit timeUnit, StatsContainer stats)
          Creates a new QueryGoogleWorker
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryGoogleWorker

public QueryGoogleWorker(String searchString,
                         int resNo,
                         gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer,
                         long timeout,
                         TimeUnit timeUnit,
                         StatsContainer stats)
Creates a new QueryGoogleWorker

Parameters:
searchString - The search string to provide goggle with
resNo - number of results
writer - The IRecordWriter which will be used to produce results
timeout - The timeout which will be used by the writer
timeUnit - The time unit of the timeout
stats - statistics1
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()


Copyright © 2013. All Rights Reserved.