SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker.internal.task
Class AbstractTask<ConfigType>

java.lang.Object
  extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
      extended by 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.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
_id, _log
 
Constructor Summary
AbstractTask(java.lang.String id)
          Instantiates a new abstract task.
 
Method Summary
 Id[] execute(TaskExecutionEnv env, ConfigType config, java.util.Map<Id,java.util.Properties> idPropertyMap)
          Execute.
protected abstract  Id[] executeInternal(TaskExecutionEnv env, ConfigType config, java.util.Map<Id,java.util.Properties> idPropertyMap)
          Execute internal task.
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask(java.lang.String id)
Instantiates a new abstract task.

Parameters:
id - the id
Method Detail

execute

public Id[] execute(TaskExecutionEnv env,
                    ConfigType config,
                    java.util.Map<Id,java.util.Properties> idPropertyMap)
             throws TaskExecutionException
Execute.

Specified by:
execute in interface TaskExecutionService<ConfigType>
Parameters:
env - the env
config - the config
idPropertyMap - a map of the record IDs and message properties
Returns:
the resulting record IDs
Throws:
TaskExecutionException - the task execution exception

executeInternal

protected abstract Id[] executeInternal(TaskExecutionEnv env,
                                        ConfigType config,
                                        java.util.Map<Id,java.util.Properties> idPropertyMap)
                                 throws java.lang.Exception
Execute internal task.

Parameters:
config - the config
idPropertyMap - a map of the record IDs and message propertie
env - the env
Returns:
the resulting record IDs
Throws:
java.lang.Exception - the exception

SMILA (incubation) API documentation