org.gcube.data.analysis.tabulardata.operation.factories.types
Class BaseWorkerFactory

java.lang.Object
  extended by org.gcube.data.analysis.tabulardata.operation.factories.types.BaseWorkerFactory
All Implemented Interfaces:
WorkerFactory
Direct Known Subclasses:
ColumnScopedWorkerFactory, TableScopedWorkerFactory, VoidScopedWorkerFactory

public abstract class BaseWorkerFactory
extends Object
implements WorkerFactory


Constructor Summary
BaseWorkerFactory()
           
 
Method Summary
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()
           
protected  void performBaseChecks(OperationInvocation invocation)
          Check for column id or table id presence according to the table scope and check presence and types of each required LeafParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.data.analysis.tabulardata.operation.worker.WorkerFactory
createWorker
 

Constructor Detail

BaseWorkerFactory

public BaseWorkerFactory()
Method Detail

getOperationName

protected abstract String getOperationName()

getOperationDescription

protected abstract String getOperationDescription()

getOperationId

protected OperationId getOperationId()

getOperationScope

protected abstract OperationScope getOperationScope()

getOperationType

protected abstract OperationType getOperationType()

getOperationDescriptor

public OperationDescriptor getOperationDescriptor()
Specified by:
getOperationDescriptor in interface WorkerFactory

getParameters

protected abstract List<org.gcube.data.analysis.tabulardata.operation.parameters.Parameter> getParameters()

performBaseChecks

protected void performBaseChecks(OperationInvocation invocation)
                          throws InvalidInvocationException
Check for column id or table id presence according to the table scope and check presence and types of each required LeafParameter

Parameters:
invocation - the invocation to check
Throws:
InvalidInvocationException - an error reporting what is wrong


Copyright © 2013. All Rights Reserved.