Klasse Job


@Entity public class Job extends PersistentObject
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
  • Konstruktordetails

    • Job

      public Job()
  • Methodendetails

    • getProcessingOrder

      public ProcessingOrder getProcessingOrder()
      Gets the order this job belongs to
      Gibt zurück:
      the order
    • setProcessingOrder

      public void setProcessingOrder(ProcessingOrder processingOrder)
      Sets the order this job belongs to
      Parameter:
      processingOrder - the order to set
    • getJobState

      public Job.JobState getJobState()
      Gets the processing state of the job
      Gibt zurück:
      the jobState
    • setJobState

      @Transactional public void setJobState(Job.JobState jobState) throws IllegalStateException
      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

      public Orbit getOrbit()
      Gets the related orbit (if any)
      Gibt zurück:
      the orbit (null if there is no direct relationship with an orbit)
    • setOrbit

      public void setOrbit(Orbit orbit)
      Sets the related orbit
      Parameter:
      orbit - the orbit to set
    • getStartTime

      public Instant getStartTime()
      Gets the start time of the processing time interval
      Gibt zurück:
      the startTime
    • setStartTime

      public void setStartTime(Instant startTime)
      Sets the start time of the processing time interval
      Parameter:
      startTime - the startTime to set
    • getStopTime

      public Instant getStopTime()
      Gets the end time of the processing time interval
      Gibt zurück:
      the stopTime
    • setStopTime

      public void setStopTime(Instant stopTime)
      Sets the end time of the processing time interval
      Parameter:
      stopTime - the stopTime to set
    • getPriority

      public Integer getPriority()
      Gets the processing priority
      Gibt zurück:
      the priority
    • setPriority

      public void setPriority(Integer priority)
      Sets the processing priority
      Parameter:
      priority - the priority to set
    • getHasFailedJobSteps

      public Boolean 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

      public Boolean 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

      public void setHasFailedJobSteps(Boolean hasFailedJobSteps)
      Sets whether the job has failed steps
      Parameter:
      hasFailedJobSteps - set to true, when a step of this job fails
    • getProcessingFacility

      public ProcessingFacility getProcessingFacility()
      Gets the processing facility for this job
      Gibt zurück:
      the processingFacility
    • setProcessingFacility

      public void setProcessingFacility(ProcessingFacility processingFacility)
      Sets the processing facility for this job
      Parameter:
      processingFacility - the processingFacility to set
    • getJobSteps

      public Set<JobStep> getJobSteps()
      Gets the job steps
      Gibt zurück:
      the jobSteps
    • setJobSteps

      public void setJobSteps(Set<JobStep> jobSteps)
      Sets the job steps
      Parameter:
      jobSteps - the jobSteps to set
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse PersistentObject
    • equals

      public boolean equals(Object obj)
      Beschreibung aus Klasse kopiert: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Setzt außer Kraft:
      equals in Klasse PersistentObject
      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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object