Package com.polarion.platform.jobs
Interface IJobMultiStatus
- All Superinterfaces:
IJobStatus
,Serializable
- All Known Implementing Classes:
JobStatus
Multi-status (status encapsulating zero or more other statuses).
Nested statuses may or may not share the same IJob
(depends on whether they came from children
jobs or if they resulted from some non-job source).
"Main" status is independent from child statuses (it may be OK even though there are some errors).
It is the responsibility of IJobUnit
to inspect the outcomes of
children jobs and decide what to do with them.
Nesting of nested status is permitted.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.platform.jobs.IJobStatus
IJobStatus.JobStatusType
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNestedStatus
(IJobStatus status) Add nested status.Return nestedIJobStatus
es.Methods inherited from interface com.polarion.platform.jobs.IJobStatus
getError, getJob, getMessage, getType
-
Method Details
-
getNestedStatuses
Collection getNestedStatuses()Return nestedIJobStatus
es.- Returns:
Collection
ofIJobStatus
es (notnull
)
-
addNestedStatus
Add nested status.- Parameters:
status
- status to nest- Throws:
IllegalArgumentException
- if status isnull
-