Package org.aksw.iguana.cc.worker
Class AbstractRandomQueryChooserWorker
- java.lang.Object
-
- org.aksw.iguana.cc.worker.AbstractWorker
-
- org.aksw.iguana.cc.worker.AbstractRandomQueryChooserWorker
-
- All Implemented Interfaces:
java.lang.Runnable
,Worker
- Direct Known Subclasses:
CLIInputWorker
,CLIWorker
,HttpWorker
,MultipleCLIInputWorker
public abstract class AbstractRandomQueryChooserWorker extends AbstractWorker
-
-
Constructor Summary
Constructors Constructor Description AbstractRandomQueryChooserWorker(java.lang.String taskID, Connection connection, java.lang.String queriesFile, java.lang.Integer timeOut, java.lang.Integer timeLimit, java.lang.Integer fixedLatency, java.lang.Integer gaussianLatency, java.lang.String workerType, java.lang.Integer workerID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getNextQuery(java.lang.StringBuilder queryStr, java.lang.StringBuilder queryID)
This method saves the next query in the queryStr StringBuilder and the query id in the queryID.void
setQueriesList(java.io.File[] queries)
Sets the Query Instances repr.-
Methods inherited from class org.aksw.iguana.cc.worker.AbstractWorker
addResults, getExecutedQueries, getNoOfQueries, getQueriesFileName, hasExecutedNoOfQueryMixes, isTerminated, popQueryResults, run, startWorker, stopSending, waitTimeMs
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.iguana.cc.worker.Worker
executeQuery
-
-
-
-
Constructor Detail
-
AbstractRandomQueryChooserWorker
public AbstractRandomQueryChooserWorker(java.lang.String taskID, Connection connection, java.lang.String queriesFile, java.lang.Integer timeOut, java.lang.Integer timeLimit, java.lang.Integer fixedLatency, java.lang.Integer gaussianLatency, java.lang.String workerType, java.lang.Integer workerID)
-
-
Method Detail
-
setQueriesList
public void setQueriesList(java.io.File[] queries)
Description copied from class:AbstractWorker
Sets the Query Instances repr. in Files.- Overrides:
setQueriesList
in classAbstractWorker
- Parameters:
queries
- File containing the query instances.
-
getNextQuery
public void getNextQuery(java.lang.StringBuilder queryStr, java.lang.StringBuilder queryID) throws java.io.IOException
Description copied from interface:Worker
This method saves the next query in the queryStr StringBuilder and the query id in the queryID.- Parameters:
queryStr
- The query should be stored in here!queryID
- The queryID should be stored in here!- Throws:
java.io.IOException
-
-