Package de.dlr.proseo.model
Klasse Job
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.Job
A collection of job steps required to fulfil an order for a specific period of time (e. g. one orbit).
Note: As a future extension a selection by geographical area in addition to or instead of a period of time is envisioned.
- Autor:
- Dr. Thomas Bassler
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumEnumeration describing possible job states. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidCheck whether a job state change is required based on the current state of the contained job steps, and if so, propagate the state change to the processing orderbooleanTest equality of persistent objects based on their unique ID.Checks whether the job has failed stepsGets the processing state of the jobGets the job stepsgetOrbit()Gets the related orbit (if any)Gets the processing priorityGets the processing facility for this jobGets the order this job belongs toGets the start time of the processing time intervalGets the end time of the processing time intervalChecks whether the job has failed steps (convenience method for getHasFailedJobSteps())inthashCode()voidsetHasFailedJobSteps(Boolean hasFailedJobSteps) Sets whether the job has failed stepsvoidsetJobState(Job.JobState jobState) Sets the processing state of the job and propagates it to the processing ordervoidsetJobSteps(Set<JobStep> jobSteps) Sets the job stepsvoidSets the related orbitvoidsetPriority(Integer priority) Sets the processing priorityvoidsetProcessingFacility(ProcessingFacility processingFacility) Sets the processing facility for this jobvoidsetProcessingOrder(ProcessingOrder processingOrder) Sets the order this job belongs tovoidsetStartTime(Instant startTime) Sets the start time of the processing time intervalvoidsetStopTime(Instant stopTime) Sets the end time of the processing time intervaltoString()Von Klasse geerbte Methoden de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Konstruktordetails
-
Job
public Job()
-
-
Methodendetails
-
getProcessingOrder
Gets the order this job belongs to- Gibt zurück:
- the order
-
setProcessingOrder
Sets the order this job belongs to- Parameter:
processingOrder- the order to set
-
getJobState
Gets the processing state of the job- Gibt zurück:
- the jobState
-
setJobState
Sets the processing state of the job and propagates it to the processing order- Parameter:
jobState- the jobState to set- Löst aus:
IllegalStateException- if the intended job state transition is illegal
-
checkStateChange
@Transactional public void checkStateChange()Check whether a job state change is required based on the current state of the contained job steps, and if so, propagate the state change to the processing order -
getOrbit
Gets the related orbit (if any)- Gibt zurück:
- the orbit (null if there is no direct relationship with an orbit)
-
setOrbit
Sets the related orbit- Parameter:
orbit- the orbit to set
-
getStartTime
Gets the start time of the processing time interval- Gibt zurück:
- the startTime
-
setStartTime
Sets the start time of the processing time interval- Parameter:
startTime- the startTime to set
-
getStopTime
Gets the end time of the processing time interval- Gibt zurück:
- the stopTime
-
setStopTime
Sets the end time of the processing time interval- Parameter:
stopTime- the stopTime to set
-
getPriority
Gets the processing priority- Gibt zurück:
- the priority
-
setPriority
Sets the processing priority- Parameter:
priority- the priority to set
-
getHasFailedJobSteps
Checks whether the job has failed steps- Gibt zurück:
- true, if at least one job step is in FAILED state, false otherwise
-
hasFailedJobSteps
Checks whether the job has failed steps (convenience method for getHasFailedJobSteps())- Gibt zurück:
- true, if at least one job step is in FAILED state, false otherwise
-
setHasFailedJobSteps
Sets whether the job has failed steps- Parameter:
hasFailedJobSteps- set to true, when a step of this job fails
-
getProcessingFacility
Gets the processing facility for this job- Gibt zurück:
- the processingFacility
-
setProcessingFacility
Sets the processing facility for this job- Parameter:
processingFacility- the processingFacility to set
-
getJobSteps
Gets the job steps- Gibt zurück:
- the jobSteps
-
setJobSteps
Sets the job steps- Parameter:
jobSteps- the jobSteps to set
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCodein KlassePersistentObject
-
equals
Beschreibung aus Klasse kopiert:PersistentObjectTest equality of persistent objects based on their unique ID.- Setzt außer Kraft:
equalsin KlassePersistentObject- Parameter:
obj- the object to compare this object to- Gibt zurück:
- true, if obj is a persistent object and has the same ID, false otherwise
- Siehe auch:
-
toString
-