public class TaskHandler extends Object implements ExecutionListener
| Constructor and Description |
|---|
TaskHandler(org.gcube.data.analysis.tabulardata.cube.CubeManager cubeManager,
TaskContext context,
WorkerCreator workerCreator,
TabularResourceDescriptor descriptor,
OperationUtil opUtil,
org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider connProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
boolean |
isStopped() |
boolean |
onStop(OperationContext opContext)
called when validation are failed, return true if the execution has to continue false otherwise
|
boolean |
run(ExecutionHolder executionHolder) |
public TaskHandler(org.gcube.data.analysis.tabulardata.cube.CubeManager cubeManager,
TaskContext context,
WorkerCreator workerCreator,
TabularResourceDescriptor descriptor,
OperationUtil opUtil,
org.gcube.data.analysis.tabulardata.cube.data.connection.DatabaseConnectionProvider connProvider)
public boolean isStopped()
public boolean run(ExecutionHolder executionHolder) throws org.gcube.data.analysis.tabulardata.operation.worker.exceptions.WorkerException, org.gcube.data.analysis.tabulardata.operation.worker.exceptions.OperationAbortedException
org.gcube.data.analysis.tabulardata.operation.worker.exceptions.WorkerExceptionorg.gcube.data.analysis.tabulardata.operation.worker.exceptions.OperationAbortedExceptionpublic boolean onStop(OperationContext opContext)
ExecutionListeneronStop in interface ExecutionListeneropContext - operation contextpublic void abort()
Copyright © 2018. All Rights Reserved.