it.unitn.ing.xgridclient
Class XGridClientMessage

java.lang.Object
  extended by it.unitn.ing.xgridclient.XGridClientMessage

public class XGridClientMessage
extends java.lang.Object

The XGridClientMessage is a class to manage messaging in XGrid This class as the other were inspired and constructed using as a starting base the com.deadmoo.xgridagent package. For more information on the XGridAgent see http://sourceforge.net/projects/xgridagent-java/

Since:
JDK1.1
Version:
$Revision: 1.0 $, $Date: Mar 29, 2006 9:59:42 AM $
Author:
Luca Lutterotti

Field Summary
static java.lang.String ADDRESSES
          The String for the payload key of a client's addresses.
static java.lang.String APPLICATION_IDENTIFIER
          The String for the dictionary key of an application identifier.
static java.lang.String ARGUMENTS
          The String for the payload key of a task's arguments.
static java.lang.String CANCEL
          The String for the task control of cancel.
static java.lang.String CLIENT_COOKIE
          The String for the payload key of a client's cookie.
static java.lang.String CLIENT_NAME
          The String for the payload key of a client's name.
static java.lang.String CLIENT_REGISTRATION
          The String for the name of a client registration message.
static java.lang.String CLIENT_STATUS
          The String for the name of a client status message.
static java.lang.String COMMAND
          The String for the payload key of a task's command.
static java.lang.String CONTROL
          The String for the payload key of a task control.
static java.lang.String CURRENT_CPU_POWER
          The String for the payload key of a client's current CPU power.
static java.lang.String CURRENT_TASK_COUNT
          The String for the payload key of a client's current task count.
static java.lang.String DATA_AVAILABLE
          The String for the payload key of if there is data available from a task.
static java.lang.String ERR_DATA
          The String for the payload key of a task's standard error.
static java.lang.String ERROR
          The String for the payload key of an error.
static java.lang.String FILE_DATA
          The String for the dictionary key of an input file's data.
static java.lang.String HOSTNAMES
          The String for the payload key of a client's hostnames.
static java.lang.String IDENTIFIER
          The String for the dictionary key of a message identifier.
static java.lang.String INPUT_FILES
          The String for the payload key of a task's input files.
static java.lang.String INPUT_STREAM
          The String for the payload key of a task's standard input.
static java.lang.String IS_EXECUTABLE
          The String for the dictionary key of if an input file is executable.
static java.lang.String JOB_ATTRIBUTES
          The String for the name of a job attributes message.
static java.lang.String JOB_CONTROL
          The String for the name of a job control message.
static java.lang.String JOB_IDENTIFIER
          The String for the name of a job identifier message.
static java.lang.String JOB_RESULTS
          The String for the name of a job results message.
static java.lang.String JOB_SPECIFICATION
          The String for the name of a job specification message.
static java.lang.String JOB_STATUS
          The String for the name of a job status message.
static java.lang.String JOB_SUBMISSION
          The String for the name of a job submission message.
static java.lang.String MAXIMUM_CPU_POWER
          The String for the payload key of a client's maximum CPU power.
static java.lang.String MAXIMUM_TASK_COUNT
          The String for the payload key of a client's maximum task count.
static java.lang.String NAME
          The String for the dictionary key of a message name.
static java.lang.String NO
          The String for the payload value of a no.
static java.lang.String NOTIFICATION
          The String for the type of a notification message.
static java.lang.String OUTPUT_FILES
          The String for the payload key of a task's ouput files.
static java.lang.String PAYLOAD
          The String for the dictionary key of a message payload.
static java.lang.String READ_DATA
          The String for the payload key of a task's standard output.
static int REMOVE
           
static java.lang.String REPLY
          The String for the type of a reply message.
static java.lang.String REQUEST
          The String for the type of a request message.
static int RESULTS
           
static java.lang.String START
          The String for the task control of start.
static int STATUS
           
static java.lang.String STDIN
          The String for the key of the file used to store the standard input of a task.
static java.lang.String SUBMISSION_IDENTIFIER
          The String for the dictionary key of a submission identifier.
static int SUBSCRIBE
           
static java.lang.String TASK_ARGUMENTS
          The String for the name of a task command arguments message.
static java.lang.String TASK_COMMAND
          The String for the name of a task command message.
static java.lang.String TASK_CONTROL
          The String for the name of a task control message.
static java.lang.String TASK_FINAL_RESULTS
          The String for the name of a task final results message.
static java.lang.String TASK_MEGAHERTZ
          The String for the payload key for the CPU power for this task.
static java.lang.String TASK_REF
          The String for the payload key of a task's reference.
static java.lang.String TASK_REF_ARRAY
          The String for the payload key of a client's task reference array.
static java.lang.String TASK_RESULTS
          The String for the name of a task results message.
static java.lang.String TASK_SPECIFICATIONS
          The String for the name of a task specification message.
static java.lang.String TASK_STATE
          The String for the payload key of a task's state.
static java.lang.String TASK_STATUS
          The String for the name of a task status message.
static java.lang.String TASK_SUBMISSION
          The String for the name of a task submission message.
static java.lang.String TERMINATION_STATUS
          The String for the payload key of a task's termination status.
static java.lang.String TYPE
          The String for the dictionary key of a message type.
static java.lang.String YES
          The String for the payload value of a yes.
static java.lang.String ZEROS
          The String for the trailing zeros that are added to the end of the CPU power.
 
Method Summary
 java.lang.String getStringRepresentation()
          Get a String containing the full message.
static java.lang.String loadfile(java.lang.String filename)
           
static java.lang.String[] loadfiles(java.lang.String folder, java.lang.String[] filenames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_REGISTRATION

public static final java.lang.String CLIENT_REGISTRATION
The String for the name of a client registration message.

See Also:
Constant Field Values

CLIENT_STATUS

public static final java.lang.String CLIENT_STATUS
The String for the name of a client status message.

See Also:
Constant Field Values

TASK_FINAL_RESULTS

public static final java.lang.String TASK_FINAL_RESULTS
The String for the name of a task final results message.

See Also:
Constant Field Values

TASK_RESULTS

public static final java.lang.String TASK_RESULTS
The String for the name of a task results message.

See Also:
Constant Field Values

TASK_STATUS

public static final java.lang.String TASK_STATUS
The String for the name of a task status message.

See Also:
Constant Field Values

TASK_CONTROL

public static final java.lang.String TASK_CONTROL
The String for the name of a task control message.

See Also:
Constant Field Values

TASK_SUBMISSION

public static final java.lang.String TASK_SUBMISSION
The String for the name of a task submission message.

See Also:
Constant Field Values

TASK_SPECIFICATIONS

public static final java.lang.String TASK_SPECIFICATIONS
The String for the name of a task specification message.

See Also:
Constant Field Values

TASK_COMMAND

public static final java.lang.String TASK_COMMAND
The String for the name of a task command message.

See Also:
Constant Field Values

TASK_ARGUMENTS

public static final java.lang.String TASK_ARGUMENTS
The String for the name of a task command arguments message.

See Also:
Constant Field Values

JOB_SPECIFICATION

public static final java.lang.String JOB_SPECIFICATION
The String for the name of a job specification message.

See Also:
Constant Field Values

JOB_SUBMISSION

public static final java.lang.String JOB_SUBMISSION
The String for the name of a job submission message.

See Also:
Constant Field Values

JOB_IDENTIFIER

public static final java.lang.String JOB_IDENTIFIER
The String for the name of a job identifier message.

See Also:
Constant Field Values

JOB_ATTRIBUTES

public static final java.lang.String JOB_ATTRIBUTES
The String for the name of a job attributes message.

See Also:
Constant Field Values

JOB_STATUS

public static final java.lang.String JOB_STATUS
The String for the name of a job status message.

See Also:
Constant Field Values

JOB_RESULTS

public static final java.lang.String JOB_RESULTS
The String for the name of a job results message.

See Also:
Constant Field Values

JOB_CONTROL

public static final java.lang.String JOB_CONTROL
The String for the name of a job control message.

See Also:
Constant Field Values

REQUEST

public static final java.lang.String REQUEST
The String for the type of a request message.

See Also:
Constant Field Values

REPLY

public static final java.lang.String REPLY
The String for the type of a reply message.

See Also:
Constant Field Values

NOTIFICATION

public static final java.lang.String NOTIFICATION
The String for the type of a notification message.

See Also:
Constant Field Values

IDENTIFIER

public static final java.lang.String IDENTIFIER
The String for the dictionary key of a message identifier.

See Also:
Constant Field Values

APPLICATION_IDENTIFIER

public static final java.lang.String APPLICATION_IDENTIFIER
The String for the dictionary key of an application identifier.

See Also:
Constant Field Values

SUBMISSION_IDENTIFIER

public static final java.lang.String SUBMISSION_IDENTIFIER
The String for the dictionary key of a submission identifier.

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The String for the dictionary key of a message name.

See Also:
Constant Field Values

PAYLOAD

public static final java.lang.String PAYLOAD
The String for the dictionary key of a message payload.

See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
The String for the dictionary key of a message type.

See Also:
Constant Field Values

ADDRESSES

public static final java.lang.String ADDRESSES
The String for the payload key of a client's addresses.

See Also:
Constant Field Values

HOSTNAMES

public static final java.lang.String HOSTNAMES
The String for the payload key of a client's hostnames.

See Also:
Constant Field Values

CLIENT_COOKIE

public static final java.lang.String CLIENT_COOKIE
The String for the payload key of a client's cookie.

See Also:
Constant Field Values

CLIENT_NAME

public static final java.lang.String CLIENT_NAME
The String for the payload key of a client's name.

See Also:
Constant Field Values

MAXIMUM_CPU_POWER

public static final java.lang.String MAXIMUM_CPU_POWER
The String for the payload key of a client's maximum CPU power.

See Also:
Constant Field Values

MAXIMUM_TASK_COUNT

public static final java.lang.String MAXIMUM_TASK_COUNT
The String for the payload key of a client's maximum task count.

See Also:
Constant Field Values

CURRENT_CPU_POWER

public static final java.lang.String CURRENT_CPU_POWER
The String for the payload key of a client's current CPU power.

See Also:
Constant Field Values

CURRENT_TASK_COUNT

public static final java.lang.String CURRENT_TASK_COUNT
The String for the payload key of a client's current task count.

See Also:
Constant Field Values

TASK_REF_ARRAY

public static final java.lang.String TASK_REF_ARRAY
The String for the payload key of a client's task reference array.

See Also:
Constant Field Values

ARGUMENTS

public static final java.lang.String ARGUMENTS
The String for the payload key of a task's arguments.

See Also:
Constant Field Values

COMMAND

public static final java.lang.String COMMAND
The String for the payload key of a task's command.

See Also:
Constant Field Values

INPUT_FILES

public static final java.lang.String INPUT_FILES
The String for the payload key of a task's input files.

See Also:
Constant Field Values

FILE_DATA

public static final java.lang.String FILE_DATA
The String for the dictionary key of an input file's data.

See Also:
Constant Field Values

IS_EXECUTABLE

public static final java.lang.String IS_EXECUTABLE
The String for the dictionary key of if an input file is executable.

See Also:
Constant Field Values

INPUT_STREAM

public static final java.lang.String INPUT_STREAM
The String for the payload key of a task's standard input.

See Also:
Constant Field Values

STDIN

public static final java.lang.String STDIN
The String for the key of the file used to store the standard input of a task.

See Also:
Constant Field Values

TASK_REF

public static final java.lang.String TASK_REF
The String for the payload key of a task's reference.

See Also:
Constant Field Values

ERR_DATA

public static final java.lang.String ERR_DATA
The String for the payload key of a task's standard error.

See Also:
Constant Field Values

READ_DATA

public static final java.lang.String READ_DATA
The String for the payload key of a task's standard output.

See Also:
Constant Field Values

OUTPUT_FILES

public static final java.lang.String OUTPUT_FILES
The String for the payload key of a task's ouput files.

See Also:
Constant Field Values

TERMINATION_STATUS

public static final java.lang.String TERMINATION_STATUS
The String for the payload key of a task's termination status.

See Also:
Constant Field Values

CONTROL

public static final java.lang.String CONTROL
The String for the payload key of a task control.

See Also:
Constant Field Values

TASK_STATE

public static final java.lang.String TASK_STATE
The String for the payload key of a task's state.

See Also:
Constant Field Values

TASK_MEGAHERTZ

public static final java.lang.String TASK_MEGAHERTZ
The String for the payload key for the CPU power for this task.

See Also:
Constant Field Values

DATA_AVAILABLE

public static final java.lang.String DATA_AVAILABLE
The String for the payload key of if there is data available from a task.

See Also:
Constant Field Values

START

public static final java.lang.String START
The String for the task control of start.

See Also:
Constant Field Values

CANCEL

public static final java.lang.String CANCEL
The String for the task control of cancel.

See Also:
Constant Field Values

YES

public static final java.lang.String YES
The String for the payload value of a yes.

See Also:
Constant Field Values

NO

public static final java.lang.String NO
The String for the payload value of a no.

See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
The String for the payload key of an error.

See Also:
Constant Field Values

ZEROS

public static final java.lang.String ZEROS
The String for the trailing zeros that are added to the end of the CPU power.

See Also:
Constant Field Values

SUBSCRIBE

public static final int SUBSCRIBE
See Also:
Constant Field Values

RESULTS

public static final int RESULTS
See Also:
Constant Field Values

REMOVE

public static final int REMOVE
See Also:
Constant Field Values

STATUS

public static final int STATUS
See Also:
Constant Field Values
Method Detail

getStringRepresentation

public java.lang.String getStringRepresentation()
Get a String containing the full message.

Returns:
the full message

loadfiles

public static java.lang.String[] loadfiles(java.lang.String folder,
                                           java.lang.String[] filenames)

loadfile

public static java.lang.String loadfile(java.lang.String filename)