public abstract class BasicComputation extends TaskWorker
Modifier and Type | Class and Description |
---|---|
class |
BasicComputation.ComputeTask |
class |
BasicComputation.GraphInitialization |
class |
BasicComputation.GraphPartiton |
class |
BasicComputation.ReductionFunction |
class |
BasicComputation.SourceTask |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
dataDirectory |
static boolean |
globaliterationStatus |
static int |
graphsize |
static int |
iterations |
static int |
parallelism |
static java.lang.String |
sourceVertexGlobal |
computeEnvironment, config, persistentVolume, taskExecutor, volatileVolume, workerController, workerEnvironment, workerId
Constructor and Description |
---|
BasicComputation() |
Modifier and Type | Method and Description |
---|---|
protected ComputeGraph |
buildComputationTG(int parallelismValue,
Config conf,
BasicComputation.SourceTask sourceTask,
BasicComputation.ComputeTask computeTask,
BasicComputation.ReductionFunction reductionFunction,
PrimitiveMessageTypes messageType) |
protected ComputeGraph |
buildGraphInitialaizationTG(java.lang.String path,
int dsize,
int parallelismValue,
Config conf,
BasicComputation.GraphInitialization graphInitialization) |
protected ComputeGraph |
buildGraphPartitionTG(java.lang.String path,
int dsize,
int parallelismValue,
Config conf,
BasicComputation.GraphPartiton graphPartiton) |
abstract ComputeGraph |
computation() |
void |
execute()
A user needs to implement this method to create the task graph and execute it
|
abstract ComputeGraph |
graphInitialization() |
abstract ComputeGraph |
graphpartition() |
execute
public static int graphsize
public static java.lang.String dataDirectory
public static int parallelism
public static java.lang.String sourceVertexGlobal
public static boolean globaliterationStatus
public static int iterations
public abstract ComputeGraph computation()
public abstract ComputeGraph graphInitialization()
public abstract ComputeGraph graphpartition()
public void execute()
TaskWorker
execute
in class TaskWorker
protected ComputeGraph buildGraphPartitionTG(java.lang.String path, int dsize, int parallelismValue, Config conf, BasicComputation.GraphPartiton graphPartiton)
protected ComputeGraph buildGraphInitialaizationTG(java.lang.String path, int dsize, int parallelismValue, Config conf, BasicComputation.GraphInitialization graphInitialization)
protected ComputeGraph buildComputationTG(int parallelismValue, Config conf, BasicComputation.SourceTask sourceTask, BasicComputation.ComputeTask computeTask, BasicComputation.ReductionFunction reductionFunction, PrimitiveMessageTypes messageType)