ZetaGrid v1.9

zeta.processor
Interface TaskRequestWorkUnitProcessor

All Superinterfaces:
TaskProcessor
All Known Implementing Classes:
DefaultWorkUnitProcessor

public interface TaskRequestWorkUnitProcessor
extends TaskProcessor

Processes work units received through the request handler.


Method Summary
 int activateWorkUnit(java.sql.Statement stmt, WorkUnit workUnit)
          Activates the specified work unit for the requested client.
 java.lang.String getParameters(WorkUnit workUnit)
          Returns the parameters which are associated with the specified work unit; are separated by the character ','
 
Methods inherited from interface zeta.processor.TaskProcessor
getWorkUnit, init
 

Method Detail

getParameters

public java.lang.String getParameters(WorkUnit workUnit)
Returns the parameters which are associated with the specified work unit; are separated by the character ','

Parameters:
workUnit - work unit
Returns:
parameters which are associated with the specified work unit; are separated by the character ','

activateWorkUnit

public int activateWorkUnit(java.sql.Statement stmt,
                            WorkUnit workUnit)
                     throws javax.servlet.ServletException,
                            java.sql.SQLException
Activates the specified work unit for the requested client.

Parameters:
stmt - statement object's database
workUnit - work unit
Returns:
less than 0 if an error occurs, 0 if the specified work unit is activated but no further work unit can be activated, and greater 0 if the specified work unit is activated and further work units can be activated.
Throws:
java.sql.SQLException - if a database access error occurs.
javax.servlet.ServletException

ZetaGrid v1.9

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