use of io.nosqlbench.engine.api.activityapi.core.Action in project nosqlbench by nosqlbench.
the class StdoutActivityTypeTest method testDiagActivity.
@Test
public void testDiagActivity() {
StdoutActivityType stdoutAt = new StdoutActivityType();
ActivityDef ad = ActivityDef.parseActivityDef("driver=stdout; yaml=stdout-test;");
StdoutActivity stdoutActivity = stdoutAt.getActivity(ad);
ActionDispenser actionDispenser = stdoutAt.getActionDispenser(stdoutActivity);
Action action = actionDispenser.getAction(1);
}
use of io.nosqlbench.engine.api.activityapi.core.Action in project nosqlbench by nosqlbench.
the class HttpActivityTypeTest method testHttpActivity.
@Test
public void testHttpActivity() {
HttpActivityType httpAt = new HttpActivityType();
ActivityDef ad = ActivityDef.parseActivityDef("driver=http; yaml=http-google.yaml; port=80; cycles=1;");
HttpActivity httpActivity = httpAt.getActivity(ad);
httpActivity.initActivity();
ActionDispenser actionDispenser = httpAt.getActionDispenser(httpActivity);
Action action = actionDispenser.getAction(1);
}
use of io.nosqlbench.engine.api.activityapi.core.Action in project nosqlbench by nosqlbench.
the class DiagActivityTypeTest method testDiagActivity.
@Test
public void testDiagActivity() {
DiagActivityType da = new DiagActivityType();
ActivityDef ad = ActivityDef.parseActivityDef("driver=diag;");
DiagActivity a = da.getActivity(ad);
a.initActivity();
ActionDispenser actionDispenser = da.getActionDispenser(a);
Action action = actionDispenser.getAction(1);
((SyncAction) action).runCycle(1L);
}
Aggregations