|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.operations.AbstractOperation
net.sf.sparql.benchmarking.operations.util.SleepOperation
public class SleepOperation
Creates a new sleep operation
Constructor Summary | |
---|---|
SleepOperation(long sleep)
Creates a new sleep operation |
|
SleepOperation(String name,
long sleep)
Creates a new sleep operation |
Method Summary | ||
---|---|---|
|
canRun(Runner<T> runner,
T options)
Report whether the operation can run based on the available options |
|
|
createCallable(Runner<T> runner,
T options)
Creates the callable for running the operation in a background thread |
|
OperationRun |
createErrorInformation(String message,
int category,
long runtime)
Creates run information for an error |
|
String |
getContentString()
Gets a string that shows the content of the operation e.g. |
|
String |
getType()
Gets a descriptive type string for the operation e.g. |
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperation |
---|
getId, getName, getStats, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SleepOperation(long sleep)
sleep
- Sleep time in secondspublic SleepOperation(String name, long sleep)
name
- Namesleep
- Sleep time in secondsMethod Detail |
---|
public <T extends Options> boolean canRun(Runner<T> runner, T options)
Operation
runner
- Runneroptions
- Options
public String getType()
Operation
public String getContentString()
Operation
public <T extends Options> OperationCallable<T> createCallable(Runner<T> runner, T options)
Operation
runner
- Runneroptions
- Options
public OperationRun createErrorInformation(String message, int category, long runtime)
Operation
message
- Error messagecategory
- Error categoryruntime
- Runtime
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |