public abstract class BaseWorkerFactory<T extends Worker<?>> extends Object implements WorkerFactory<T>
| Constructor and Description |
|---|
BaseWorkerFactory() |
| Modifier and Type | Method and Description |
|---|---|
RollbackWorker |
createRollbackWoker(org.gcube.data.analysis.tabulardata.model.table.Table diffTable,
org.gcube.data.analysis.tabulardata.model.table.Table createdTable,
OperationInvocation oldInvocation) |
String |
describeInvocation(OperationInvocation toDescribeInvocation) |
protected abstract String |
getOperationDescription() |
OperationDescriptor |
getOperationDescriptor() |
protected OperationId |
getOperationId() |
protected abstract String |
getOperationName() |
protected abstract OperationScope |
getOperationScope() |
protected abstract OperationType |
getOperationType() |
protected abstract List<org.gcube.data.analysis.tabulardata.operation.parameters.Parameter> |
getParameters() |
Map<String,Object> |
getParametersForPrecondion(String identifier,
org.gcube.data.analysis.tabulardata.model.table.TableId tableId,
org.gcube.data.analysis.tabulardata.model.column.ColumnLocalId columnId,
Map<String,Object> sourceParameterInstance) |
List<WorkerFactory<ValidationWorker>> |
getPrecoditionValidations()
Deprecated.
|
Map<String,WorkerFactory<ValidationWorker>> |
getPreconditionValidationMap() |
boolean |
isRollbackable() |
protected void |
performBaseChecks(OperationInvocation invocation,
org.gcube.data.analysis.tabulardata.cube.CubeManager cubeManager)
Check for column id or table id presence according to the table scope and check presence and types of each required
LeafParameter |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateWorker, getWorkerTypeprotected abstract String getOperationName()
protected abstract String getOperationDescription()
protected OperationId getOperationId()
@Deprecated public List<WorkerFactory<ValidationWorker>> getPrecoditionValidations()
getPrecoditionValidations in interface WorkerFactory<T extends Worker<?>>public Map<String,WorkerFactory<ValidationWorker>> getPreconditionValidationMap()
getPreconditionValidationMap in interface WorkerFactory<T extends Worker<?>>public Map<String,Object> getParametersForPrecondion(String identifier, org.gcube.data.analysis.tabulardata.model.table.TableId tableId, org.gcube.data.analysis.tabulardata.model.column.ColumnLocalId columnId, Map<String,Object> sourceParameterInstance) throws InvalidInvocationException
getParametersForPrecondion in interface WorkerFactory<T extends Worker<?>>InvalidInvocationExceptionpublic boolean isRollbackable()
isRollbackable in interface WorkerFactory<T extends Worker<?>>public RollbackWorker createRollbackWoker(org.gcube.data.analysis.tabulardata.model.table.Table diffTable, org.gcube.data.analysis.tabulardata.model.table.Table createdTable, OperationInvocation oldInvocation)
createRollbackWoker in interface WorkerFactory<T extends Worker<?>>protected abstract OperationScope getOperationScope()
protected abstract OperationType getOperationType()
public OperationDescriptor getOperationDescriptor()
getOperationDescriptor in interface WorkerFactory<T extends Worker<?>>protected abstract List<org.gcube.data.analysis.tabulardata.operation.parameters.Parameter> getParameters()
protected void performBaseChecks(OperationInvocation invocation, org.gcube.data.analysis.tabulardata.cube.CubeManager cubeManager) throws InvalidInvocationException
LeafParameterinvocation - the invocation to checkInvalidInvocationException - an error reporting what is wrongpublic String describeInvocation(OperationInvocation toDescribeInvocation) throws InvalidInvocationException
describeInvocation in interface WorkerFactory<T extends Worker<?>>InvalidInvocationExceptionCopyright © 2015. All Rights Reserved.