ZetaGrid v1.9

zeta.processor
Interface TaskProcessor

All Known Subinterfaces:
TaskRequestWorkUnitProcessor, TaskResultProcessor
All Known Implementing Classes:
DefaultWorkUnitProcessor

public interface TaskProcessor

Basic methods to process work units at the handlers.


Method Summary
 WorkUnit getWorkUnit(int taskId, long workUnitId, int size)
          Returns a work unit for the specified parameters.
 void init(ZetaServlet servlet, java.sql.Statement stmt, java.util.Map parameter)
          Initializes the processor
 

Method Detail

init

public void init(ZetaServlet servlet,
                 java.sql.Statement stmt,
                 java.util.Map parameter)
          throws java.sql.SQLException
Initializes the processor

Parameters:
servlet - surrounding servlet
stmt - statement object's database
Throws:
java.sql.SQLException - if a database access error occurs.

getWorkUnit

public WorkUnit getWorkUnit(int taskId,
                            long workUnitId,
                            int size)
Returns a work unit for the specified parameters.

Parameters:
taskId - ID of the task
workUnitId - ID of the work unit
size - size of the work unit
Returns:
a work unit for the specified parameters.

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.