public abstract class TaskWorker extends java.lang.Object implements IWorker
| Modifier and Type | Field and Description | 
|---|---|
| protected ComputeEnvironment | computeEnvironment | 
| protected Config | configConfiguration | 
| protected IPersistentVolume | persistentVolumePersistent volume | 
| protected TaskExecutor | taskExecutorThe task executor to be used | 
| protected IVolatileVolume | volatileVolumeVolatile volume | 
| protected IWorkerController | workerControllerController | 
| protected WorkerEnvironment | workerEnvironmentWorker environment | 
| protected int | workerIdThis 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)
IWorkerpublic abstract void execute()