org.eclipse.smila.connectivity.queue.worker.internal.task
Class AbstractTask<ConfigType>
java.lang.Object
org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
org.eclipse.smila.connectivity.queue.worker.internal.task.AbstractTask<ConfigType>
- Type Parameters:
ConfigType - configuration type
- All Implemented Interfaces:
- TaskExecutionService<ConfigType>
- Direct Known Subclasses:
- Process, Send
public abstract class AbstractTask<ConfigType>
- extends AbstractLoggedComponent
- implements TaskExecutionService<ConfigType>
The Class AbstractTask.
|
Constructor Summary |
AbstractTask(java.lang.String id)
Instantiates a new abstract task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTask
public AbstractTask(java.lang.String id)
- Instantiates a new abstract task.
- Parameters:
id - the id
execute
public java.lang.String[] execute(TaskExecutionEnv env,
ConfigType config,
java.util.Map<java.lang.String,java.util.Properties> idPropertyMap)
throws TaskExecutionException
- Execute.
- Specified by:
execute in interface TaskExecutionService<ConfigType>
- Parameters:
env - the envconfig - the configidPropertyMap - a map of the record IDs and message properties
- Returns:
- the resulting record IDs
- Throws:
TaskExecutionException - the task execution exception
executeInternal
protected abstract java.lang.String[] executeInternal(TaskExecutionEnv env,
ConfigType config,
java.util.Map<java.lang.String,java.util.Properties> idPropertyMap)
throws java.lang.Exception
- Execute internal task.
- Parameters:
config - the configidPropertyMap - a map of the record IDs and message propertieenv - the env
- Returns:
- the resulting record IDs
- Throws:
java.lang.Exception - the exception