ZetaGrid v1.9

zeta.handler
Class ResultHandler

java.lang.Object
  |
  +--zeta.handler.ResultHandler
All Implemented Interfaces:
PostHandler

public class ResultHandler
extends java.lang.Object
implements PostHandler

Handles a POST request with the result of a work unit. The request must contains the following parameters which are transfered at the header name 'Param-String':

The response contains an 'ok' or an error. The results are stored by the following algorithm:
  1. Stores the result of the work unit with current timestamp in the recomputation table if a result exists for this work unit but there exist a reserved work unit for recomputation without a result.
  2. Stores the result of the work unit with current timestamp in the result table if no result exists.


Field Summary
private  int concurrentConnections
           
private  short dataNotCompleteCount
           
private  java.lang.String dataNotCompleteWorkUnitId
           
private static java.lang.String encryptionClass
           
private static int encryptionClassTaskId
           
private  int MAX_CONCURRENT_CONNECTIONS
           
private  short MAX_DATA_NOT_COMPLETE_COUNT
           
private  ZetaServlet servlet
          Servlet which owns this handler.
 
Constructor Summary
ResultHandler(ZetaServlet servlet)
           
 
Method Summary
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Handles a POST request with the result of a work unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CONCURRENT_CONNECTIONS

private final int MAX_CONCURRENT_CONNECTIONS
See Also:
Constant Field Values

concurrentConnections

private int concurrentConnections

dataNotCompleteWorkUnitId

private java.lang.String dataNotCompleteWorkUnitId

dataNotCompleteCount

private short dataNotCompleteCount

MAX_DATA_NOT_COMPLETE_COUNT

private final short MAX_DATA_NOT_COMPLETE_COUNT
See Also:
Constant Field Values

servlet

private ZetaServlet servlet
Servlet which owns this handler.


encryptionClass

private static java.lang.String encryptionClass

encryptionClassTaskId

private static int encryptionClassTaskId
Constructor Detail

ResultHandler

public ResultHandler(ZetaServlet servlet)
Parameters:
servlet - servlet which owns this handler.
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse resp)
            throws javax.servlet.ServletException,
                   java.sql.SQLException,
                   java.io.IOException
Handles a POST request with the result of a work unit. The request must contains the following parameters which are transfered at the header name 'Param-String': The response resp contains an 'ok' or an error.

Specified by:
doPost in interface PostHandler
javax.servlet.ServletException
java.sql.SQLException
java.io.IOException

ZetaGrid v1.9

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