org.glite.wmsui.apij
Class JobStatus

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.glite.wmsui.apij.InfoLB
              extended byorg.glite.wmsui.apij.JobStatus
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class JobStatus
extends InfoLB

LB JobStatus Class Wrap.

This class represents the status of a job, retrieved from the LB server. During its lifecycle a job can likely change the status, and almost all of its attributes.

Version:
0.1
Author:
Alessandro Maraschini
See Also:
Serialized Form

Field Summary
static int ABORTED
          Return Status Code: Aborted by system (at any stage)
static int ACL
          JobStatus Attribute: Acl
static java.lang.String[] attNames
          The String irepresentation of the attribute names
static int CANCEL_REASON
          JobStatus Attribute: Cancel Reason
static int CANCELLED
          Return Status Code: Cancelled by user
static int CANCELLING
          JobStatus Attribute: Cancellation request
static int CE_NODE
          Worker node where the job is executed
static int CHILDREN
          list of subjob IDs
static int CHILDREN_HIST
          summary (histogram) of children job states
static int CHILDREN_NUM
          number of subjobs
static int CHILDREN_STATES
          full status information of the children
static int CLEARED
          Return Status Code: Output transfered back to user and freed
static java.lang.String[] code
          String representation of the attribute codes
static int CONDOR_ID
          Id within Condor-G
static int CONDOR_JDL
          ClassAd passed to Condor-G for last job execution
static int CPU_TIME
          Consumed CPU time
static int DESTINATION
          JobStatus Attribute: Ce Id
static int DONE
          Return Status Code: Execution finished, output not yet available
static int DONE_CODE
          Return code
static int EXIT_CODE
          Unix exit code
static int EXPECT_FROM
          Sources of the missing information
static int EXPECT_UPDATE
          JobStatus Attribute: Logged information not arrived
static int GLOBUS_ID
          JobStatus Attribute: Globus allocated Id
static int JDL
          JobStatus Attribute: Job Description Language
static int JOB_ID
          JobStatus Attribute: JobId
static int JOBTYPE
          Type of job
static int JOBTYPE_DAG
          Static value that indicates a Dag
static int JOBTYPE_JOB
          Static value that indicates a Job
static int LAST_UPDATE_TIME
          JobStatus Attribute: Last known event of the job
static int LOCAL_ID
          JobStatus Attribute: Id within LRMS
static int LOCATION
          JobStatus Attribute: Location
static int MATCHED_JDL
          Full job description after matchmaking
static int MAX_STATUS
          Return Status Code: Status cannot be determined
static int NETWORK_SERVER
          Network server handling the job
static int OWNER
          JobStatus Attribute: Job owner
static int PARENT_JOB
          parent job of subjob
static int PAYLOAD_RUNNING
          User Payload started
static int POSSIBLE_CE_NODES
          CE nodes matching to possible destinations
static int POSSIBLE_DESTINATIONS
          Possible job destinations
static int PURGED
          Return Status Code: Status cannot be determined
static int READY
          Return Status Code: Matching resources found
static int REASON
          JobStatus Attribute: Status Reason
static int RESUBMITTED
          JobStatus Attribute: The job was resubmitted
static int RSL
          JobStatus Attribute: RSL to Globus
static int RUNNING
          Return Status Code: Executable is running
static int SCHEDULED
          Return Status Code: Accepted by LRMS queue
static int SEED
          JobStatus Attribute: string used for generation of subjob IDs
static int STATE_ENTER_TIME
          JobStatus Attribute: Status enter time
static int STATE_ENTER_TIMES
          JobStatus Attribute: When all previous states were entered
static int STATUS
          JobStatus Attribute: The Status of the job
static int STATUS_CODE
           
static int SUBJOB_FAILED
          JobStatus Attribute: Subjob failed (the parent job will fail too)
static int SUBMITTED
          Return Status Code: Just submitted by user interface
static int UNDEF
          Return Status Code: indicates invalid, i.e.
static int UNKNOWN
          Return Status Code: Status cannot be determined
static int USER_TAGS
          JobStatus Attribute: List of user-specified information tags
static int WAITING
          Return Status Code: Accepted by WMS, waiting for resource allocation
 
Fields inherited from class org.glite.wmsui.apij.InfoLB
DEFAULT_LOG_LEVEL, HIGH_LOG_LEVEL, NORMAL_LOG_LEVEL
 
Constructor Summary
JobStatus()
          Default Constructor
 
Method Summary
 int code()
          Current status code as an int, see possible values:
 java.util.Vector getSubJobs()
          Retrieve all the sub jobs status information as vector of JobStatus instances
 java.lang.String name()
          Current status name.
 java.lang.String toString()
          String representation of all the status attributes
 java.lang.String toString(int level)
          Convert the JobStatus into a string
 
Methods inherited from class org.glite.wmsui.apij.InfoLB
get, getValInt, getValString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

attNames

public static final java.lang.String[] attNames
The String irepresentation of the attribute names


JOBTYPE_DAG

public static final int JOBTYPE_DAG
Static value that indicates a Dag

See Also:
Constant Field Values

JOBTYPE_JOB

public static final int JOBTYPE_JOB
Static value that indicates a Job

See Also:
Constant Field Values

ACL

public static final int ACL
JobStatus Attribute: Acl

See Also:
Constant Field Values

CANCEL_REASON

public static final int CANCEL_REASON
JobStatus Attribute: Cancel Reason

See Also:
Constant Field Values

CANCELLING

public static final int CANCELLING
JobStatus Attribute: Cancellation request

See Also:
Constant Field Values

CE_NODE

public static final int CE_NODE
Worker node where the job is executed

See Also:
Constant Field Values

CHILDREN

public static final int CHILDREN
list of subjob IDs

See Also:
Constant Field Values

CHILDREN_HIST

public static final int CHILDREN_HIST
summary (histogram) of children job states

See Also:
Constant Field Values

CHILDREN_NUM

public static final int CHILDREN_NUM
number of subjobs

See Also:
Constant Field Values

CHILDREN_STATES

public static final int CHILDREN_STATES
full status information of the children

See Also:
Constant Field Values

CONDOR_ID

public static final int CONDOR_ID
Id within Condor-G

See Also:
Constant Field Values

CONDOR_JDL

public static final int CONDOR_JDL
ClassAd passed to Condor-G for last job execution

See Also:
Constant Field Values

CPU_TIME

public static final int CPU_TIME
Consumed CPU time

See Also:
Constant Field Values

DESTINATION

public static final int DESTINATION
JobStatus Attribute: Ce Id

See Also:
Constant Field Values

DONE_CODE

public static final int DONE_CODE
Return code

See Also:
Constant Field Values

EXIT_CODE

public static final int EXIT_CODE
Unix exit code

See Also:
Constant Field Values

EXPECT_FROM

public static final int EXPECT_FROM
Sources of the missing information

See Also:
Constant Field Values

EXPECT_UPDATE

public static final int EXPECT_UPDATE
JobStatus Attribute: Logged information not arrived

See Also:
Constant Field Values

GLOBUS_ID

public static final int GLOBUS_ID
JobStatus Attribute: Globus allocated Id

See Also:
Constant Field Values

JDL

public static final int JDL
JobStatus Attribute: Job Description Language

See Also:
Constant Field Values

JOB_ID

public static final int JOB_ID
JobStatus Attribute: JobId

See Also:
Constant Field Values

JOBTYPE

public static final int JOBTYPE
Type of job

See Also:
Constant Field Values

LAST_UPDATE_TIME

public static final int LAST_UPDATE_TIME
JobStatus Attribute: Last known event of the job

See Also:
Constant Field Values

LOCAL_ID

public static final int LOCAL_ID
JobStatus Attribute: Id within LRMS

See Also:
Constant Field Values

LOCATION

public static final int LOCATION
JobStatus Attribute: Location

See Also:
Constant Field Values

MATCHED_JDL

public static final int MATCHED_JDL
Full job description after matchmaking

See Also:
Constant Field Values

NETWORK_SERVER

public static final int NETWORK_SERVER
Network server handling the job

See Also:
Constant Field Values

OWNER

public static final int OWNER
JobStatus Attribute: Job owner

See Also:
Constant Field Values

PARENT_JOB

public static final int PARENT_JOB
parent job of subjob

See Also:
Constant Field Values

PAYLOAD_RUNNING

public static final int PAYLOAD_RUNNING
User Payload started

See Also:
Constant Field Values

POSSIBLE_CE_NODES

public static final int POSSIBLE_CE_NODES
CE nodes matching to possible destinations

See Also:
Constant Field Values

POSSIBLE_DESTINATIONS

public static final int POSSIBLE_DESTINATIONS
Possible job destinations

See Also:
Constant Field Values

REASON

public static final int REASON
JobStatus Attribute: Status Reason

See Also:
Constant Field Values

RESUBMITTED

public static final int RESUBMITTED
JobStatus Attribute: The job was resubmitted

See Also:
Constant Field Values

RSL

public static final int RSL
JobStatus Attribute: RSL to Globus

See Also:
Constant Field Values

SEED

public static final int SEED
JobStatus Attribute: string used for generation of subjob IDs

See Also:
Constant Field Values

STATE_ENTER_TIME

public static final int STATE_ENTER_TIME
JobStatus Attribute: Status enter time

See Also:
Constant Field Values

STATE_ENTER_TIMES

public static final int STATE_ENTER_TIMES
JobStatus Attribute: When all previous states were entered

See Also:
Constant Field Values

SUBJOB_FAILED

public static final int SUBJOB_FAILED
JobStatus Attribute: Subjob failed (the parent job will fail too)

See Also:
Constant Field Values

USER_TAGS

public static final int USER_TAGS
JobStatus Attribute: List of user-specified information tags

See Also:
Constant Field Values

STATUS

public static final int STATUS
JobStatus Attribute: The Status of the job

See Also:
Constant Field Values

STATUS_CODE

public static final int STATUS_CODE
See Also:
Constant Field Values

code

public static final java.lang.String[] code
String representation of the attribute codes

See Also:
name(), code()

UNDEF

public static final int UNDEF
Return Status Code: indicates invalid, i.e. uninitialized instance

See Also:
Constant Field Values

SUBMITTED

public static final int SUBMITTED
Return Status Code: Just submitted by user interface

See Also:
Constant Field Values

WAITING

public static final int WAITING
Return Status Code: Accepted by WMS, waiting for resource allocation

See Also:
Constant Field Values

READY

public static final int READY
Return Status Code: Matching resources found

See Also:
Constant Field Values

SCHEDULED

public static final int SCHEDULED
Return Status Code: Accepted by LRMS queue

See Also:
Constant Field Values

RUNNING

public static final int RUNNING
Return Status Code: Executable is running

See Also:
Constant Field Values

DONE

public static final int DONE
Return Status Code: Execution finished, output not yet available

See Also:
Constant Field Values

CLEARED

public static final int CLEARED
Return Status Code: Output transfered back to user and freed

See Also:
Constant Field Values

ABORTED

public static final int ABORTED
Return Status Code: Aborted by system (at any stage)

See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
Return Status Code: Cancelled by user

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Return Status Code: Status cannot be determined

See Also:
Constant Field Values

PURGED

public static final int PURGED
Return Status Code: Status cannot be determined

See Also:
Constant Field Values

MAX_STATUS

public static final int MAX_STATUS
Return Status Code: Status cannot be determined

See Also:
Constant Field Values
Constructor Detail

JobStatus

public JobStatus()
Default Constructor

Method Detail

name

public java.lang.String name()
Current status name.

Returns:
the current status name string representation
See Also:
code()

code

public int code()
Current status code as an int, see possible values:

Returns:
the current status int representation
See Also:
UNDEF, SUBMITTED, WAITING, READY, SCHEDULED, RUNNING, DONE, CLEARED, ABORTED, CANCELLED, UNKNOWN, PURGED, name()

toString

public java.lang.String toString()
String representation of all the status attributes

Overrides:
toString in class InfoLB
Returns:
all the attributes values represented as a String

getSubJobs

public java.util.Vector getSubJobs()
Retrieve all the sub jobs status information as vector of JobStatus instances

Returns:
a Vector of JobStatus for a DAG. empty vector otherwise

toString

public java.lang.String toString(int level)
Convert the JobStatus into a string

Parameters:
level - of verbosity, can be 0 (minimal) 1(normal) or 2 (high)
Returns:
the string representation for the status attributes