net.sf.mybatchfwk
Interface ITask

All Superinterfaces:
java.lang.Runnable

public interface ITask
extends java.lang.Runnable

Tasks given to the executor service must implements this interface

Author:
Jérôme Bertèche (cyberteche@users.sourceforge.net)

Method Summary
 java.lang.String getId()
          Return the id of the task.
 void run()
          The run method in which the task job must be defined.
 

Method Detail

getId

java.lang.String getId()
Return the id of the task.
The id is store to the execution report after the completion or the failure of the task.

Returns:
the id of the task

run

void run()
The run method in which the task job must be defined. If an error occured, a TaskExecutionException must be throw.

Specified by:
run in interface java.lang.Runnable
See Also:
TaskExecutionException


Copyright © 2006 null. All Rights Reserved.