mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-20 11:38:28 -06:00
minor edits - switching tasks to other work
This commit is contained in:
parent
0022f7f2be
commit
42a3a2f0af
@ -10,16 +10,17 @@ import java.util.function.LongFunction;
|
||||
/**
|
||||
* Holds the definition and tracking state for a web driver command.
|
||||
*/
|
||||
public class WebDriverAsyncAction extends BaseAsyncAction<WebDriverCmdState,WebDriverActivity> {
|
||||
public class WebDriverAction extends BaseAsyncAction<WebDriverCmdState,WebDriverActivity> {
|
||||
|
||||
public WebDriverAsyncAction(WebDriverActivity activity, int slot) {
|
||||
public WebDriverAction(WebDriverActivity activity, int slot) {
|
||||
super(activity,slot);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startOpCycle(TrackedOp<WebDriverCmdState> opc) {
|
||||
WebDriver driver = new ChromeDriver();
|
||||
driver.get("http://docs.nosqlbench.io/");
|
||||
// WebDriver driver = new ChromeDriver();
|
||||
// driver.get("http://docs.nosqlbench.io/");
|
||||
// opc.start();
|
||||
}
|
||||
|
||||
@Override
|
@ -35,7 +35,7 @@ public class WebDriverActivityType implements ActivityType<WebDriverActivity> {
|
||||
|
||||
@Override
|
||||
public Action getAction(int slot) {
|
||||
return new WebDriverAsyncAction((WebDriverActivity) activity, slot);
|
||||
return new WebDriverAction((WebDriverActivity) activity, slot);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ package io.nosqlbench.driver.web;
|
||||
|
||||
public class WebDriverCmdState {
|
||||
|
||||
private final WebDriverAsyncAction action;
|
||||
private final WebDriverAction action;
|
||||
private final long cycle;
|
||||
|
||||
public WebDriverCmdState(WebDriverAsyncAction action, long cycle) {
|
||||
public WebDriverCmdState(WebDriverAction action, long cycle) {
|
||||
|
||||
this.action = action;
|
||||
this.cycle = cycle;
|
||||
|
@ -57,7 +57,8 @@ public abstract class BaseAsyncAction<D, A extends Activity> implements AsyncAct
|
||||
|
||||
/**
|
||||
* Implementations that extend this base class can call this method in order to put
|
||||
* an operation in flight.
|
||||
* an operation in flight. Implementations should call either {@link TrackedOp#skip(int)}
|
||||
* or {@link TrackedOp#start()}}.
|
||||
*
|
||||
* @param opc A tracked operation with state of parameterized type D
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user