public abstract class TaskWorker extends java.lang.Object implements IWorker
Modifier and Type | Field and Description |
---|---|
protected ComputeEnvironment |
computeEnvironment |
protected Config |
config
Configuration
|
protected IPersistentVolume |
persistentVolume
Persistent volume
|
protected TaskExecutor |
taskExecutor
The task executor to be used
|
protected IVolatileVolume |
volatileVolume
Volatile volume
|
protected IWorkerController |
workerController
Controller
|
protected WorkerEnvironment |
workerEnvironment
Worker environment
|
protected int |
workerId
This id
|
Constructor and Description |
---|
TaskWorker() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute()
A user needs to implement this method to create the task graph and execute it
|
void |
execute(Config cfg,
JobAPI.Job job,
IWorkerController wController,
IPersistentVolume pVolume,
IVolatileVolume vVolume)
Execute with the resources configured
|
protected WorkerEnvironment workerEnvironment
protected int workerId
protected IWorkerController workerController
protected IPersistentVolume persistentVolume
protected IVolatileVolume volatileVolume
protected Config config
protected TaskExecutor taskExecutor
protected ComputeEnvironment computeEnvironment
public void execute(Config cfg, JobAPI.Job job, IWorkerController wController, IPersistentVolume pVolume, IVolatileVolume vVolume)
IWorker
public abstract void execute()