public abstract class BenchTaskWorker extends java.lang.Object implements Twister2Worker
Modifier and Type | Class and Description |
---|---|
protected static class |
BenchTaskWorker.SourceTask |
protected static class |
BenchTaskWorker.SourceWindowTask |
protected static class |
BenchTaskWorker.SourceWindowTimeStampTask |
Modifier and Type | Field and Description |
---|---|
protected ComputeConnection |
computeConnection |
protected ComputeGraph |
computeGraph |
protected ComputeGraphBuilder |
computeGraphBuilder |
protected ExecutionPlan |
executionPlan |
protected static int[] |
inputDataArray |
protected static JobParameters |
jobParameters |
protected static java.util.concurrent.atomic.AtomicInteger |
receiversInProgress |
protected static BenchmarkResultsRecorder |
resultsRecorder |
protected static java.util.concurrent.atomic.AtomicInteger |
sendersInProgress |
protected static java.lang.String |
SINK |
protected static java.lang.String |
SOURCE |
Constructor and Description |
---|
BenchTaskWorker() |
Modifier and Type | Method and Description |
---|---|
abstract ComputeGraphBuilder |
buildTaskGraph() |
void |
execute(WorkerEnvironment workerEnv)
This is the main point of entry for Twister2 jobs.
|
static boolean |
getTimingCondition(java.lang.String taskName,
TaskContext ctx) |
protected static boolean |
verifyResults(ResultsVerifier resultsVerifier,
java.lang.Object results,
java.util.Map<java.lang.String,java.lang.Object> args,
boolean verified)
This method will verify results and append the output to the results recorder
|
protected static final java.lang.String SOURCE
protected static final java.lang.String SINK
protected ComputeGraph computeGraph
protected ComputeGraphBuilder computeGraphBuilder
protected ExecutionPlan executionPlan
protected ComputeConnection computeConnection
protected static JobParameters jobParameters
protected static int[] inputDataArray
protected static BenchmarkResultsRecorder resultsRecorder
protected static java.util.concurrent.atomic.AtomicInteger sendersInProgress
protected static java.util.concurrent.atomic.AtomicInteger receiversInProgress
public void execute(WorkerEnvironment workerEnv)
Twister2Worker
execute
in interface Twister2Worker
public abstract ComputeGraphBuilder buildTaskGraph()
protected static boolean verifyResults(ResultsVerifier resultsVerifier, java.lang.Object results, java.util.Map<java.lang.String,java.lang.Object> args, boolean verified)
public static boolean getTimingCondition(java.lang.String taskName, TaskContext ctx)