public abstract class CommsWorker extends java.lang.Object implements IWorker
Modifier and Type | Class and Description |
---|---|
protected class |
CommsWorker.DataStreamer |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
commsType |
protected int |
features |
protected java.util.Map<java.lang.Integer,java.lang.Boolean> |
finishedSources |
protected double[][] |
inputDataArray |
protected LogicalPlan |
logicalPlan |
protected int |
parallelism |
protected boolean |
sourcesDone |
protected SVMJobParameters |
svmJobParameters |
protected java.util.List<java.lang.Integer> |
taskStages |
protected int |
testingSamples |
protected int |
trainingSamples |
protected int |
workerId |
Constructor and Description |
---|
CommsWorker() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
execute(Config cfg,
JobAPI.Job job,
IWorkerController workerController,
IPersistentVolume persistentVolume,
IVolatileVolume volatileVolume)
Execute with the resources configured
|
protected abstract void |
execute(WorkerEnvironment wEnv) |
protected void |
finishCommunication(int src) |
abstract java.util.List<java.lang.Integer> |
generateTaskStages() |
protected abstract boolean |
isDone() |
protected void |
progress() |
protected abstract void |
progressCommunication() |
protected abstract boolean |
sendMessages(int task,
java.lang.Object data,
int flag) |
protected final java.util.Map<java.lang.Integer,java.lang.Boolean> finishedSources
protected int workerId
protected LogicalPlan logicalPlan
protected SVMJobParameters svmJobParameters
protected boolean sourcesDone
protected double[][] inputDataArray
protected int features
protected int trainingSamples
protected int testingSamples
protected int parallelism
protected java.util.List<java.lang.Integer> taskStages
protected java.lang.String commsType
public void execute(Config cfg, JobAPI.Job job, IWorkerController workerController, IPersistentVolume persistentVolume, IVolatileVolume volatileVolume)
IWorker
protected abstract void execute(WorkerEnvironment wEnv)
protected abstract void progressCommunication()
protected abstract boolean isDone()
protected abstract boolean sendMessages(int task, java.lang.Object data, int flag)
protected void progress()
public void close()
protected void finishCommunication(int src)
public abstract java.util.List<java.lang.Integer> generateTaskStages()