Package com.polarion.platform.jobs
Class JobState
java.lang.Object
com.polarion.platform.jobs.JobState
- All Implemented Interfaces:
Serializable
Job state "enumeration".
Values of this enumeration treat Object.equals(java.lang.Object)
and
==
the same.
- Version:
- $Revision:56034 $ $Date:2006-07-13 11:21:20Z $
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JobState
job aborted (no matter how) - more information may be found inIJob.getStatus()
static final JobState
job is inIJobUnit.activate()
static final JobState
job finished (no matter how) - more information may be found inIJob.getStatus()
static final JobState
job is inIJobUnit.run(IProgressMonitor)
or a child is runningstatic final JobState
initial state of all spawned jobsstatic final JobState
job waits forIJobUnit.run(IProgressMonitor)
to be executed -
Method Summary
-
Field Details
-
STATE_UNSCHEDULED
initial state of all spawned jobs -
STATE_ACTIVATING
job is inIJobUnit.activate()
-
STATE_WAITING
job waits forIJobUnit.run(IProgressMonitor)
to be executed -
STATE_RUNNING
job is inIJobUnit.run(IProgressMonitor)
or a child is running -
STATE_FINISHED
job finished (no matter how) - more information may be found inIJob.getStatus()
-
STATE_ABORTED
job aborted (no matter how) - more information may be found inIJob.getStatus()
-
-
Method Details
-
getName
Return state name.Same as
toString()
.Do not use for comparison, use
fromString(String)
first.- Returns:
- name (not
null
)
-
toString
-
fromString
Return enumeration value for given name.Comparison is case insensitive.
- Parameters:
s
- name- Returns:
- proper enumeration value (not
null
) - Throws:
IllegalArgumentException
- if name is not known- See Also:
-