|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.TaskServer
Defines the task at the server side.
| Field Summary | |
private java.math.BigInteger |
decryptionNumber
Decryption number for the Decryptor (half-certified Diffie-Hellman protocol). |
private static java.math.BigInteger |
defaultDecryptionNumber
The default decryption number for the half-certified Diffie-Hellman protocol. |
private byte[] |
encryptionClass
The bytes that make up the class data which contains the key to encrypt the results of this task. |
private java.lang.String |
encryptionSignature
Digital signature of the class name which contains the key to encrypt the results of this task. |
private int |
id
ID of the task. |
private static java.util.Map |
mapTask
Maps a task name on a task. |
private java.lang.String |
name
The unique name of the task. |
private java.util.Map |
parameter
Parameters of the HttpRequest. |
private TaskRequestWorkUnitProcessor |
requestProcessor
An object which processes the request for work units of the task. |
private TaskResultProcessor |
resultProcessor
An object for the specified class name which processes the task results. |
| Constructor Summary | |
private |
TaskServer(int id,
java.lang.String name,
java.util.Map parameter)
The method getTask must be used. |
private |
TaskServer(TaskServer taskServer,
ZetaServlet servlet,
java.util.Map parameter)
|
| Method Summary | |
java.math.BigInteger |
getDecryptionNumber()
Returns the decryption number for the Decryptor (half-certified Diffie-Hellman protocol). |
private static java.math.BigInteger |
getDefaultDecryptionNumber(ZetaServlet servlet)
Returns the default decryption number for the half-certified Diffie-Hellman protocol. |
byte[] |
getEncryptionClass()
Returns the bytes that make up the class data which contains the key to encrypt the results of this task. |
java.lang.String |
getEncryptionSignature()
Returns the digital signature (big integer radix 32) of the class name which contains the key to encrypt the results of this task. |
int |
getId()
Returns the ID of the task. |
java.lang.String |
getName()
Returns the unique name of the task. |
java.util.Map |
getParameter()
Returns the decrypted parameters of the HttpRequest. |
java.lang.String |
getParameter(java.lang.String key)
Returns a value for a key from the specified map with parameters. |
private static TaskRequestWorkUnitProcessor |
getRequestProcessor(ZetaServlet servlet,
java.sql.Statement stmt,
java.lang.String requestProcessorName,
java.util.Map parameter)
Returns an object for the specified class name which processes the request for work units of the task. |
TaskRequestWorkUnitProcessor |
getRequestWorkUnitProcessor()
Returns an object which processes the request for work units of the task. |
TaskResultProcessor |
getResultProcessor()
Returns an object which processes the task results. |
private static TaskResultProcessor |
getResultProcessor(ZetaServlet servlet,
java.sql.Statement stmt,
java.lang.String resultProcessorName,
java.util.Map parameter)
Returns an object for the specified class name which processes the task results. |
static TaskServer |
getTask(ZetaServlet servlet,
java.util.Map parameter)
Returns the task object of a specified task name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int id
private java.lang.String name
private byte[] encryptionClass
private java.lang.String encryptionSignature
private java.math.BigInteger decryptionNumber
private TaskRequestWorkUnitProcessor requestProcessor
private TaskResultProcessor resultProcessor
private java.util.Map parameter
private static java.util.Map mapTask
private static java.math.BigInteger defaultDecryptionNumber
| Constructor Detail |
private TaskServer(int id,
java.lang.String name,
java.util.Map parameter)
getTask must be used.
id - ID of the taskname - name of the task
private TaskServer(TaskServer taskServer,
ZetaServlet servlet,
java.util.Map parameter)
| Method Detail |
public static TaskServer getTask(ZetaServlet servlet,
java.util.Map parameter)
throws javax.servlet.ServletException,
java.sql.SQLException
servlet - surrounding servlet
null.
java.sql.SQLException - if a database access error occurs.
javax.servlet.ServletExceptionpublic int getId()
public java.lang.String getName()
public byte[] getEncryptionClass()
public java.lang.String getEncryptionSignature()
public java.math.BigInteger getDecryptionNumber()
public TaskRequestWorkUnitProcessor getRequestWorkUnitProcessor()
null if it is not defined.public TaskResultProcessor getResultProcessor()
null if it is not defined.public java.util.Map getParameter()
public java.lang.String getParameter(java.lang.String key)
key - key
null if no value was found.
private static TaskRequestWorkUnitProcessor getRequestProcessor(ZetaServlet servlet,
java.sql.Statement stmt,
java.lang.String requestProcessorName,
java.util.Map parameter)
servlet - surrounding servletstmt - statement object's databaserequestProcessorName - class name which processes the request for work units of the task
null if the class is not defined.
private static TaskResultProcessor getResultProcessor(ZetaServlet servlet,
java.sql.Statement stmt,
java.lang.String resultProcessorName,
java.util.Map parameter)
servlet - surrounding servletstmt - statement object's databaseresultProcessorName - class name which processes the task results
null if the class is not defined.
private static java.math.BigInteger getDefaultDecryptionNumber(ZetaServlet servlet)
throws javax.servlet.ServletException,
java.sql.SQLException
servlet - surrounding servlet
java.sql.SQLException - if a database access error occurs.
javax.servlet.ServletException
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||