com.sap.scheduler.runtime

Class JobStatus

java.lang.Object
  extended by com.sap.scheduler.runtime.JobStatus
All Implemented Interfaces:
Serializable

public class JobStatus
extends Object
implements Serializable

Job status codes.

See Also:
Serialized Form

Field Summary
static JobStatus CANCELLED
          A job has been cancelled while it was in state SCHEDULED, STARTING, or HOLD.
static JobStatus COMPLETED
          The job has completed.
static JobStatus ERROR
          The job has completed but threw an exception during execution or it is clear that the job failed (e.g. for a http job the http message could not be sent).
static JobStatus HOLD
          A job which was in state SCHEDULE can be held by the internal or an external scheduler.
static JobStatus RUNNING
          The job is currently executing.
static JobStatus SCHEDULED
          The job was scheduled by the internal job scheduler, it will be started by the internal scheduler in the future.
static JobStatus STARTING
          The job is currently being started by the job execution runtime (e.g. the JMS messages has been sent but was not yet received by the job).
static JobStatus UNKNOWN
          The job is in an unknown state.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 short value()
           
static JobStatus valueOf(short s)
           
static JobStatus valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEDULED

public static final JobStatus SCHEDULED
The job was scheduled by the internal job scheduler, it will be started by the internal scheduler in the future. A job triggered by an external scheduler cannot reach that state.


HOLD

public static final JobStatus HOLD
A job which was in state SCHEDULE can be held by the internal or an external scheduler. In that case the job will go into the HOLD state.


RUNNING

public static final JobStatus RUNNING
The job is currently executing.


UNKNOWN

public static final JobStatus UNKNOWN
The job is in an unknown state. One possibility to get into that state is when a node is starting up and detects that there are currently running jobs on that node.


COMPLETED

public static final JobStatus COMPLETED
The job has completed.


ERROR

public static final JobStatus ERROR
The job has completed but threw an exception during execution or it is clear that the job failed (e.g. for a http job the http message could not be sent).


CANCELLED

public static final JobStatus CANCELLED
A job has been cancelled while it was in state SCHEDULED, STARTING, or HOLD.


STARTING

public static final JobStatus STARTING
The job is currently being started by the job execution runtime (e.g. the JMS messages has been sent but was not yet received by the job). For some job types this state may not be necessary, however it is guaranteed that a job will assume this state and an event is sent.

Method Detail

value

public short value()

valueOf

public static JobStatus valueOf(String s)

valueOf

public static JobStatus valueOf(short s)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGFACADE [sap.com] tc/je/scheduler/api


Copyright 2010 SAP AG Complete Copyright Notice