Package de.dlr.proseo.model.rest.model
Class RestJob
java.lang.Object
de.dlr.proseo.model.rest.model.RestJob
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanIndicates whether at least one of the job steps for this job is in state FAILEDprotected LongThe persistent id of this objectprotected JobStateStatus of the whole jobprotected List<RestJobStep> The job steps for this jobprotected RestOrbitThe orbit this job relates to (if any)protected StringUser-defined order identifierprotected LongA processing priority (lower numbers indicate lower priority, higher numbers higher priority; default is 50)protected StringThe name of the processing facility this job runs on(package private) static final longprotected DateThe start time of the time interval to processprotected DateThe end time of the time interval to processprotected LongA version identifier to track updates to the object (especially to detect concurrent update attempts) -
Constructor Summary
ConstructorsConstructorDescriptionRestJob()Creates a new RestJob.RestJob(Long id, Long version, String orderIdentifier, JobState jobState, RestOrbit orbit, Date startTime, Date stopTime, Long priority, Boolean hasFailedJobSteps, String processingFacilityName, List<RestJobStep> jobSteps) Creates a new RestJob. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the hasFailedJobSteps.getId()Returns the id.@NotNull @Valid JobStateReturns the jobState.@NotNull @Valid List<RestJobStep> Returns the jobSteps.@Valid RestOrbitgetOrbit()Returns the orbit.@NotNull StringReturns the orderIdentifier.@NotNull LongReturns the priority.@NotNull StringReturns the processingFacilityName.Returns the startTime.Returns the stopTime.Returns the version.inthashCode()voidsetHasFailedJobSteps(Boolean hasFailedJobSteps) Set the hasFailedJobSteps.voidSet the id.voidsetJobState(JobState jobState) Set the jobState.voidsetJobSteps(List<RestJobStep> jobSteps) Set the jobSteps.voidSet the orbit.voidsetOrderIdentifier(String orderIdentifier) Set the orderIdentifier.voidsetPriority(Long priority) Set the priority.voidsetProcessingFacilityName(String processingFacilityName) Set the processingFacilityName.voidsetStartTime(Date startTime) Set the startTime.voidsetStopTime(Date stopTime) Set the stopTime.voidsetVersion(Long version) Set the version.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
id
The persistent id of this object -
version
A version identifier to track updates to the object (especially to detect concurrent update attempts) -
orderIdentifier
User-defined order identifier -
jobState
Status of the whole job -
orbit
The orbit this job relates to (if any) -
startTime
The start time of the time interval to process -
stopTime
The end time of the time interval to process -
priority
A processing priority (lower numbers indicate lower priority, higher numbers higher priority; default is 50) -
hasFailedJobSteps
Indicates whether at least one of the job steps for this job is in state FAILED -
processingFacilityName
The name of the processing facility this job runs on -
jobSteps
The job steps for this job
-
-
Constructor Details
-
RestJob
public RestJob()Creates a new RestJob. -
RestJob
public RestJob(Long id, Long version, String orderIdentifier, JobState jobState, RestOrbit orbit, Date startTime, Date stopTime, Long priority, Boolean hasFailedJobSteps, String processingFacilityName, List<RestJobStep> jobSteps) Creates a new RestJob.
-
-
Method Details
-
getId
Returns the id.- Returns:
- id
-
setId
Set the id.- Parameters:
id- the new id
-
getVersion
Returns the version.- Returns:
- version
-
setVersion
Set the version.- Parameters:
version- the new version
-
getOrderIdentifier
Returns the orderIdentifier.- Returns:
- orderIdentifier
-
setOrderIdentifier
Set the orderIdentifier.- Parameters:
orderIdentifier- the new orderIdentifier
-
getJobState
Returns the jobState.- Returns:
- jobState
-
setJobState
Set the jobState.- Parameters:
jobState- the new jobState
-
getOrbit
Returns the orbit.- Returns:
- orbit
-
setOrbit
Set the orbit.- Parameters:
orbit- the new orbit
-
getStartTime
Returns the startTime.- Returns:
- startTime
-
setStartTime
Set the startTime.- Parameters:
startTime- the new startTime
-
getStopTime
Returns the stopTime.- Returns:
- stopTime
-
setStopTime
Set the stopTime.- Parameters:
stopTime- the new stopTime
-
getPriority
Returns the priority.- Returns:
- priority
-
setPriority
Set the priority.- Parameters:
priority- the new priority
-
getHasFailedJobSteps
Returns the hasFailedJobSteps.- Returns:
- hasFailedJobSteps
-
setHasFailedJobSteps
Set the hasFailedJobSteps.- Parameters:
hasFailedJobSteps- the new hasFailedJobSteps
-
getProcessingFacilityName
Returns the processingFacilityName.- Returns:
- processingFacilityName
-
setProcessingFacilityName
Set the processingFacilityName.- Parameters:
processingFacilityName- the new processingFacilityName
-
getJobSteps
Returns the jobSteps.- Returns:
- jobSteps
-
setJobSteps
Set the jobSteps.- Parameters:
jobSteps- the new jobSteps
-
hashCode
public int hashCode() -
equals
-
toString
-