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':
task - name of task of the work unit.
work_unit_id - identification of the work unit.
user - name of the resource provider.
hostname - name of the host of the resource provider.
hostaddr - TCP/IP address of the host of the resource provider.
The response contains an 'ok' or an error.
The results are stored by the following algorithm:
- 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.
- Stores the result of the work unit with current timestamp in the result table if no result exists.
|
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 |
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
ResultHandler
public ResultHandler(ZetaServlet servlet)
- Parameters:
servlet - servlet which owns this handler.
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':
task - name of task of the work unit.
work_unit_id - identification of the work unit.
user - name of the resource provider.
hostname - name of the host of the resource provider.
hostaddr - TCP/IP address of the host of the resource provider.
The response resp contains an 'ok' or an error.
- Specified by:
doPost in interface PostHandler
javax.servlet.ServletException
java.sql.SQLException
java.io.IOException
For further technical papers, see ZetaGrid Technical Documentation.
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.