edg.workload.userinterface.jclient
Class Result

java.lang.Object
  |
  +--edg.workload.userinterface.jclient.Result

public class Result
extends java.lang.Object

The Result Class is used to store information of a required operation Depending on the operation type, the user will be able to check for possible error or in case of success retrieve back the Job required information


Field Summary
static int ACCEPTED
          The requested operation has been accepted
static int CANCEL
          Job Cancellation Result value
static int CANCEL_FAILURE
          API failed = general RB Exc remapping
static int CANCEL_FORBIDDEN
          When trying to cancel a not submitted job
static int CONDOR_FAILURE
          Cancel Method Result
static int FILE_TRANSFER_ERROR
          SandboxIOException
static int GENERIC_FAILURE
          API failed = general RB Exc remapping
static int GETOUTPUT_FAILURE
          API failed = general RB Exc remapping
static int GETOUTPUT_FORBIDDEN
          When trying to retrieve output from a not submitted job
static int GLOBUS_JOBMANAGER_FAILURE
          Globus jobManager falied
static int JOB_ABORTED
          The Job Has aborted
static int JOB_ALREADY_DONE
          The Job Has been already completed
static int JOB_CANCELLING
          The Job Has been removed
static int JOB_NOT_FOUND
          JobNotFoundException
static int JOB_NOT_OWNER
          The User is not the owner of the job
static int LISTMATCH
          Matching CE info Result value
static int LISTMATCH_FAILURE
          API failed = general RB Exc remapping
static int LISTMATCH_FORBIDDEN
          When trying to retrieve ListMatch from a non-ad job
static int LOGINFO
          Events info Result value
static int LOGINFO_FAILURE
          API failed = general RB Exc remapping
static int LOGINFO_FORBIDDEN
          When trying to retrieve logging info from a not submitted job
static int MARKED_FOR_REMOVAL
          Cancel Method Result
static int OUTPUT
          Job Output files retrieval Result value
static int OUTPUT_NOT_READY
          JobNotDoneException
static int OUTPUT_UNCOMPLETED
          submit skipped because the job has been already submitted
static int STATUS
          JobStatus info Result value
static int STATUS_FAILURE
          API failed = general RB Exc remapping
static int STATUS_FORBIDDEN
          When trying to retrieve status from a not submitted job
static int SUBMIT
          Submission Result value
static int SUBMIT_FAILURE
          API failed = general RB Exc remapping
static int SUBMIT_FORBIDDEN
          When trying to submit a non-ad job
static int SUBMIT_SKIP
          submit skipped because the job has been already submitted
static int SUCCESS
          The requested operation has been completed successfully
 
Method Summary
 int getCode()
          Retutn the code representig the required operation
 java.lang.String getId()
          Retrun the Id representing the Job (empty string if the job hasn't been submitted)
 java.lang.Object getResult()
          The Object returned from the operation depending on the operation itself The value of the Object is: SUBMIT = null CANCEL = null OUTPUT = null STATUS = the JobStatus of the Job LOGINFO = the Vector of the job's Events LISTMATCH = an HashMap listing the Computing Elements
 java.lang.String toString()
          Convert the Result into a string
 java.lang.String toString(int verbosity)
          Convert the Result into a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUBMIT

public static final int SUBMIT
Submission Result value

See Also:
Constant Field Values

STATUS

public static final int STATUS
JobStatus info Result value

See Also:
Constant Field Values

CANCEL

public static final int CANCEL
Job Cancellation Result value

See Also:
Constant Field Values

OUTPUT

public static final int OUTPUT
Job Output files retrieval Result value

See Also:
Constant Field Values

LOGINFO

public static final int LOGINFO
Events info Result value

See Also:
Constant Field Values

LISTMATCH

public static final int LISTMATCH
Matching CE info Result value

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
The requested operation has been completed successfully

See Also:
Constant Field Values

ACCEPTED

public static final int ACCEPTED
The requested operation has been accepted

See Also:
Constant Field Values

SUBMIT_FAILURE

public static final int SUBMIT_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

STATUS_FAILURE

public static final int STATUS_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

CANCEL_FAILURE

public static final int CANCEL_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

GETOUTPUT_FAILURE

public static final int GETOUTPUT_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

LOGINFO_FAILURE

public static final int LOGINFO_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

LISTMATCH_FAILURE

public static final int LISTMATCH_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

GENERIC_FAILURE

public static final int GENERIC_FAILURE
API failed = general RB Exc remapping

See Also:
Constant Field Values

CONDOR_FAILURE

public static final int CONDOR_FAILURE
Cancel Method Result

See Also:
Constant Field Values

SUBMIT_FORBIDDEN

public static final int SUBMIT_FORBIDDEN
When trying to submit a non-ad job

See Also:
Constant Field Values

STATUS_FORBIDDEN

public static final int STATUS_FORBIDDEN
When trying to retrieve status from a not submitted job

See Also:
Constant Field Values

CANCEL_FORBIDDEN

public static final int CANCEL_FORBIDDEN
When trying to cancel a not submitted job

See Also:
Constant Field Values

GETOUTPUT_FORBIDDEN

public static final int GETOUTPUT_FORBIDDEN
When trying to retrieve output from a not submitted job

See Also:
Constant Field Values

LOGINFO_FORBIDDEN

public static final int LOGINFO_FORBIDDEN
When trying to retrieve logging info from a not submitted job

See Also:
Constant Field Values

LISTMATCH_FORBIDDEN

public static final int LISTMATCH_FORBIDDEN
When trying to retrieve ListMatch from a non-ad job

See Also:
Constant Field Values

OUTPUT_NOT_READY

public static final int OUTPUT_NOT_READY
JobNotDoneException

See Also:
Constant Field Values

FILE_TRANSFER_ERROR

public static final int FILE_TRANSFER_ERROR
SandboxIOException

See Also:
Constant Field Values

JOB_NOT_FOUND

public static final int JOB_NOT_FOUND
JobNotFoundException

See Also:
Constant Field Values

MARKED_FOR_REMOVAL

public static final int MARKED_FOR_REMOVAL
Cancel Method Result

See Also:
Constant Field Values

GLOBUS_JOBMANAGER_FAILURE

public static final int GLOBUS_JOBMANAGER_FAILURE
Globus jobManager falied

See Also:
Constant Field Values

JOB_ALREADY_DONE

public static final int JOB_ALREADY_DONE
The Job Has been already completed

See Also:
Constant Field Values

JOB_ABORTED

public static final int JOB_ABORTED
The Job Has aborted

See Also:
Constant Field Values

JOB_CANCELLING

public static final int JOB_CANCELLING
The Job Has been removed

See Also:
Constant Field Values

JOB_NOT_OWNER

public static final int JOB_NOT_OWNER
The User is not the owner of the job

See Also:
Constant Field Values

SUBMIT_SKIP

public static final int SUBMIT_SKIP
submit skipped because the job has been already submitted

See Also:
Constant Field Values

OUTPUT_UNCOMPLETED

public static final int OUTPUT_UNCOMPLETED
submit skipped because the job has been already submitted

See Also:
Constant Field Values
Method Detail

toString

public java.lang.String toString()
Convert the Result into a string

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int verbosity)
Convert the Result into a string


getCode

public int getCode()
Retutn the code representig the required operation


getResult

public java.lang.Object getResult()
The Object returned from the operation depending on the operation itself The value of the Object is:

SUBMIT = null

CANCEL = null

OUTPUT = null

STATUS = the JobStatus of the Job

LOGINFO = the Vector of the job's Events

LISTMATCH = an HashMap listing the Computing Elements


getId

public java.lang.String getId()
Retrun the Id representing the Job (empty string if the job hasn't been submitted)