Package com.polarion.platform.jobs
Class IJobStatus.JobStatusType
java.lang.Object
com.polarion.platform.jobs.IJobStatus.JobStatusType
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- IJobStatus
Job status type "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
FieldsModifier and TypeFieldDescriptionstatic final IJobStatus.JobStatusTypejob execution was cancelledstatic final IJobStatus.JobStatusTypejob execution failedstatic final IJobStatus.JobStatusTypejob executed without problemsstatic final IJobStatus.JobStatusTypejob execution did not started -
Method Summary
Modifier and TypeMethodDescriptionstatic IJobStatus.JobStatusTypefromString(String s) Return enumeration value for given name.getName()Return status type name.toString()
-
Field Details
-
STATUS_TYPE_OK
job executed without problems -
STATUS_TYPE_CANCELLED
job execution was cancelled -
STATUS_TYPE_FAILED
job execution failed -
STATUS_TYPE_UNKNOWN
job execution did not started
-
-
Method Details
-
getName
Return status type 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:
-