Package org.aksw.iguana.cc.tasks.impl
Class Stresstest
- java.lang.Object
-
- org.aksw.iguana.cc.tasks.AbstractTask
-
- org.aksw.iguana.cc.tasks.impl.Stresstest
-
- All Implemented Interfaces:
Task
@Shorthand("Stresstest") public class Stresstest extends AbstractTask
Stresstest. Will stresstest a connection using several Workers (simulated Users) each in one thread.
-
-
Constructor Summary
Constructors Constructor Description Stresstest(java.lang.Integer timeLimit, java.util.ArrayList workers, java.util.LinkedHashMap queryHandler)
Stresstest(java.lang.Integer timeLimit, java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.util.LinkedHashMap warmup)
Stresstest(java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.lang.Integer noOfQueryMixes)
Stresstest(java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.util.LinkedHashMap warmup, java.lang.Integer noOfQueryMixes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetaData()
Add extra Meta Datavoid
close()
Will close the Task and post process everything (e.g.void
execute()
Will execute the Tasklong
getExecutedQueries()
void
init(java.lang.String[] ids, java.lang.String dataset, Connection connection)
Will initialize the task-
Methods inherited from class org.aksw.iguana.cc.tasks.AbstractTask
sendResults, start
-
-
-
-
Constructor Detail
-
Stresstest
public Stresstest(java.lang.Integer timeLimit, java.util.ArrayList workers, java.util.LinkedHashMap queryHandler) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
Stresstest
public Stresstest(java.lang.Integer timeLimit, java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.util.LinkedHashMap warmup) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
Stresstest
public Stresstest(java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.lang.Integer noOfQueryMixes) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
Stresstest
public Stresstest(java.util.ArrayList workers, java.util.LinkedHashMap queryHandler, java.util.LinkedHashMap warmup, java.lang.Integer noOfQueryMixes) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
-
Method Detail
-
addMetaData
public void addMetaData()
Add extra Meta Data- Specified by:
addMetaData
in interfaceTask
- Overrides:
addMetaData
in classAbstractTask
-
init
public void init(java.lang.String[] ids, java.lang.String dataset, Connection connection)
Description copied from interface:Task
Will initialize the task- Specified by:
init
in interfaceTask
- Overrides:
init
in classAbstractTask
- Parameters:
ids
- normally the suiteID, experimentID, taskIDdataset
- the dataset nameconnection
- the current connection to execute the task against
-
execute
public void execute()
Description copied from interface:Task
Will execute the Task
-
close
public void close()
Description copied from interface:Task
Will close the Task and post process everything (e.g. send the end flag to the rabbit mq queue)- Specified by:
close
in interfaceTask
- Overrides:
close
in classAbstractTask
-
getExecutedQueries
public long getExecutedQueries()
-
-