net.sf.mybatchfwk.history
Interface IExecutionHistory

All Known Implementing Classes:
FileExecutionHistory, MemoryExecutionHistory

public interface IExecutionHistory

An ExecutionHistory is design to store the id of the completed and failed tasks.

Author:
Administrateur

Method Summary
 void closeStorage()
          Close the storage system (called one time at the end of the batch)
 java.util.Iterator completedTasksIdIterator()
          Return an iterator over the id of the completed tasks
 java.util.Iterator failedTasksIdIterator()
          Return an iterator over the id of the completed tasks
 void initStorage(BatchConfiguration configuration)
          Init the storage system (called one time at the beginning of the batch)
 boolean isCompletedTask(java.lang.String id)
          Return true is this task has already been executed and completed
 boolean isFailedTask(java.lang.String id)
          Return true is this task has already been executed but failed
 void storeCompletedTaskId(java.lang.String id)
          Store the id of the completed task
 void storeFailedTaskId(java.lang.String id)
          Store the id of the failed task
 

Method Detail

initStorage

void initStorage(BatchConfiguration configuration)
                 throws BatchException
Init the storage system (called one time at the beginning of the batch)

Parameters:
configuration - the configuration of the batch
Throws:
BatchException

closeStorage

void closeStorage()
                  throws BatchException
Close the storage system (called one time at the end of the batch)

Throws:
BatchException

isCompletedTask

boolean isCompletedTask(java.lang.String id)
                        throws BatchException
Return true is this task has already been executed and completed

Parameters:
id - the id a a task
Throws:
BatchException

isFailedTask

boolean isFailedTask(java.lang.String id)
                     throws BatchException
Return true is this task has already been executed but failed

Parameters:
id -
Throws:
BatchException

storeCompletedTaskId

void storeCompletedTaskId(java.lang.String id)
                          throws BatchException
Store the id of the completed task

Parameters:
id -
Throws:
BatchException

storeFailedTaskId

void storeFailedTaskId(java.lang.String id)
                       throws BatchException
Store the id of the failed task

Parameters:
id -
Throws:
BatchException

completedTasksIdIterator

java.util.Iterator completedTasksIdIterator()
                                            throws BatchException
Return an iterator over the id of the completed tasks

Returns:
Throws:
BatchException

failedTasksIdIterator

java.util.Iterator failedTasksIdIterator()
                                         throws BatchException
Return an iterator over the id of the completed tasks

Returns:
Throws:
BatchException


Copyright © 2006 null. All Rights Reserved.