Package de.dlr.proseo.model
Klasse ProcessingOrder
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.ProcessingOrder
A customer order to process a specific set of ProductClasses for a specific period of time using a specific set of
ConfiguredProcessors. An order may have properties like a product quality indicator (test vs operational), specific product
delivery endpoints, specific (potentially mission-dependent) product generation attributes (e. g. a Copernicus collection
number) etc.
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Check whether a processing order state change is required based on the current state of the contained jobsboolean
Test equality of persistent objects based on their unique ID.Gets the date and time the order was actually completedGets the class-specific output parametersGets the dynamic processing parameters to be set for the Job Orders in this orderGets the date and time the order is expected to be completedGets the order eviction time (if any)Gets the scheduled execution time (if any)Checks whether the order has failed job stepsGets the user-defined identifierGets the input filtersGets the input product classes provided to the ordergetJobs()
Gets the processing jobsGets the owning missionGets the order progress monitoring dataGets the source application for the orderGets the state of the processing orderGets the file class of the output productsGets the output parametersgetOutputParameters
(ProductClass productClass) Gets the output parameters for a specific product class (class-specific, if available, general otherwise)Gets the priority value for schedulingGets the processing mode for the processorsGets the production type contextGets the retention period for products generated by this processing orderGets the date and time the order was released for processingGets the requested configured processorsGets the requested orbitsGets the requested product classesGets the duration for a single sliceGets the overlap time between slicesGets the method for partitioning the orbit time intervalGets the (earliest) start time of the processing time intervalGets a message explaining the latest state changeGets the (latest) stop time of the processing time intervalGets the date and time the order was receivedgetUuid()
Gets the universally unique identifier (UUID)Get the workflowChecks whether the order has failed job steps (convenience method for getHasFailedJobSteps())int
hashCode()
void
setActualCompletionTime
(Instant actualCompletionTime) Sets the date and time the order was actually completedvoid
setClassOutputParameters
(Map<ProductClass, ClassOutputParameter> classOutputParameters) Sets the class-specific output parametersvoid
setDynamicProcessingParameters
(Map<String, Parameter> dynamicProcessingParameters) Sets the dynamic processing parameters to be set for the Job Orders in this ordervoid
setEstimatedCompletionTime
(Instant estimatedCompletionTime) Sets the date and time the order is expected to be completedvoid
setEvictionTime
(Instant evictionTime) Sets the order eviction timevoid
setExecutionTime
(Instant executionTime) Sets the scheduled execution timevoid
setHasFailedJobSteps
(Boolean hasFailedJobSteps) Sets whether the order has failed job stepsvoid
setIdentifier
(String identifier) Sets the user-defined identifiervoid
setInputFilters
(Map<ProductClass, InputFilter> inputFilters) Sets the input filtersvoid
setInputProductClasses
(Set<ProductClass> inputProductClasses) Sets the input product classes provided to the ordervoid
setInputProductReference
(InputProductReference inputProductReference) void
Sets the processing jobsvoid
setMission
(Mission mission) Sets the owning missionvoid
setMonOrderProgress
(Set<MonOrderProgress> monOrderProgress) Sets the order progress monitoring datavoid
setNotificationEndpoint
(NotificationEndpoint notificationEndpoint) void
setOrderSource
(OrderSource orderSource) Sets the source application for the ordervoid
setOrderState
(OrderState orderState) Sets the state of the processing ordervoid
setOutputFileClass
(String outputFileClass) Sets the file class for the output productsvoid
setOutputParameters
(Map<String, Parameter> outputParameters) Sets the output parametersvoid
setPriority
(Integer priority) Sets the priority value for schedulingvoid
setProcessingMode
(String processingMode) Sets the processing mode for the processorsvoid
setProductionType
(ProductionType productionType) Sets the production type contextvoid
setProductRetentionPeriod
(Duration productRetentionPeriod) Sets the retention period for products generated by this processing ordervoid
setReleaseTime
(Instant releaseTime) Sets the date and time the order was released for processingvoid
setRequestedConfiguredProcessors
(Set<ConfiguredProcessor> requestedConfiguredProcessors) Sets the requested configured processorsvoid
setRequestedOrbits
(List<Orbit> requestedOrbits) Sets the requested orbitsvoid
setRequestedProductClasses
(Set<ProductClass> requestedProductClasses) Sets the requested product classesvoid
setSliceDuration
(Duration sliceDuration) Sets the duration for a single slice (for slicing type TIME_SLICE only)void
setSliceOverlap
(Duration sliceOverlap) Sets the overlap time between slicesvoid
setSlicingType
(OrderSlicingType slicingType) Sets the method for partitioning the orbit time interval.void
setStartTime
(Instant startTime) Sets the (earliest) start time of the processing time intervalvoid
setStateMessage
(String stateMessage) Sets a message explaining the latest state changevoid
setStopTime
(Instant stopTime) Sets the (latest) stop time of the processing time intervalvoid
setSubmissionTime
(Instant submissionTime) Sets the date and time the order was receivedvoid
Sets the universally unique identifier (UUID)void
setWorkflow
(Workflow workflow) Set the workflowtoString()
Von Klasse geerbte Methoden de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Konstruktordetails
-
ProcessingOrder
public ProcessingOrder()
-
-
Methodendetails
-
getMission
Gets the owning mission- Gibt zurück:
- the mission
-
setMission
Sets the owning mission- Parameter:
mission
- the mission to set
-
getIdentifier
Gets the user-defined identifier- Gibt zurück:
- the identifier
-
setIdentifier
Sets the user-defined identifier- Parameter:
identifier
- the identifier to set
-
getUuid
Gets the universally unique identifier (UUID)- Gibt zurück:
- the UUID
-
setUuid
Sets the universally unique identifier (UUID)- Parameter:
uuid
- the UUID to set
-
getPriority
Gets the priority value for scheduling- Gibt zurück:
- the priority
-
setPriority
Sets the priority value for scheduling- Parameter:
priority
- the priority to set
-
getOrderState
Gets the state of the processing order- Gibt zurück:
- the orderState
-
setOrderState
Sets the state of the processing order- Parameter:
orderState
- the orderState to set- Löst aus:
IllegalStateException
- if the intended order state transition is illegal
-
checkStateChange
@Transactional public void checkStateChange()Check whether a processing order state change is required based on the current state of the contained jobs -
getStateMessage
Gets a message explaining the latest state change- Gibt zurück:
- the state message
-
setStateMessage
Sets a message explaining the latest state change- Parameter:
stateMessage
- the state message to set
-
getOrderSource
Gets the source application for the order- Gibt zurück:
- the order source
-
setOrderSource
Sets the source application for the order- Parameter:
orderSource
- the order source to set
-
getSubmissionTime
Gets the date and time the order was received- Gibt zurück:
- the submission time
-
setSubmissionTime
Sets the date and time the order was received- Parameter:
submissionTime
- the submission time to set
-
getExecutionTime
Gets the scheduled execution time (if any)- Gibt zurück:
- the executionTime (may be null)
-
setExecutionTime
Sets the scheduled execution time- Parameter:
executionTime
- the executionTime to set (a null value removes an existing execution time)
-
getReleaseTime
Gets the date and time the order was released for processing- Gibt zurück:
- the releaseTime
-
setReleaseTime
Sets the date and time the order was released for processing- Parameter:
releaseTime
- the releaseTime to set
-
getEstimatedCompletionTime
Gets the date and time the order is expected to be completed- Gibt zurück:
- the estimated completion time
-
setEstimatedCompletionTime
Sets the date and time the order is expected to be completed- Parameter:
estimatedCompletionTime
- the estimated completion time to set
-
getActualCompletionTime
Gets the date and time the order was actually completed- Gibt zurück:
- the actualCompletionTime
-
setActualCompletionTime
Sets the date and time the order was actually completed- Parameter:
actualCompletionTime
- the actualCompletionTime to set
-
getEvictionTime
Gets the order eviction time (if any)- Gibt zurück:
- the eviction time
-
setEvictionTime
Sets the order eviction time- Parameter:
evictionTime
- the eviction time to set (may be null)
-
getStartTime
Gets the (earliest) start time of the processing time interval- Gibt zurück:
- the startTime
-
setStartTime
Sets the (earliest) start time of the processing time interval- Parameter:
startTime
- the startTime to set
-
getStopTime
Gets the (latest) stop time of the processing time interval- Gibt zurück:
- the stopTime
-
setStopTime
Sets the (latest) stop time of the processing time interval- Parameter:
stopTime
- the stopTime to set
-
getSlicingType
Gets the method for partitioning the orbit time interval- Gibt zurück:
- the slicingType the order slicing type
-
setSlicingType
Sets the method for partitioning the orbit time interval. If the slicing type is set to TIME_SLICE and the slice duration has not yet been set, then the slice duration will be set to a default value of one day; for other slicing types the current slice duration will be deleted. If the slicing type is set to NONE, the slice overlap will be set to zero.- Parameter:
slicingType
- the slicing type to set
-
getSliceDuration
Gets the duration for a single slice- Gibt zurück:
- the slice duration for slicing type TIME_SLICE, null otherwise
-
setSliceDuration
Sets the duration for a single slice (for slicing type TIME_SLICE only)- Parameter:
sliceDuration
- the sliceDuration to set- Löst aus:
IllegalStateException
- if setting a slice duration for orders with slicing type other than TIME_SLICE is attempted
-
getSliceOverlap
Gets the overlap time between slices- Gibt zurück:
- the slice overlap
-
setSliceOverlap
Sets the overlap time between slices- Parameter:
sliceOverlap
- the slice overlap to set- Löst aus:
IllegalStateException
- if setting an overlap other than 0 for orders with slicing type NONE is attempted
-
getInputProductReference
- Gibt zurück:
- the inputProductReference
-
setInputProductReference
- Parameter:
inputProductReference
- the inputProductReference to set
-
getInputFilters
Gets the input filters- Gibt zurück:
- the input filters
-
setInputFilters
Sets the input filters- Parameter:
inputFilters
- the input filters to set
-
getDynamicProcessingParameters
Gets the dynamic processing parameters to be set for the Job Orders in this order- Gibt zurück:
- the dynamicProcessingParameters
-
setDynamicProcessingParameters
Sets the dynamic processing parameters to be set for the Job Orders in this order- Parameter:
dynamicProcessingParameters
- the dynamicProcessingParameters to set
-
getClassOutputParameters
Gets the class-specific output parameters- Gibt zurück:
- the class-specific output parameters
-
setClassOutputParameters
Sets the class-specific output parameters- Parameter:
classOutputParameters
- the class-specific output parameters to set
-
getOutputParameters
Gets the output parameters- Gibt zurück:
- the outputParameters
-
getOutputParameters
Gets the output parameters for a specific product class (class-specific, if available, general otherwise)- Parameter:
productClass
- the product class to get the parameters for- Gibt zurück:
- the output parameters
-
setOutputParameters
Sets the output parameters- Parameter:
outputParameters
- the output parameters to set
-
getRequestedProductClasses
Gets the requested product classes- Gibt zurück:
- the requestedProductClasses
-
setRequestedProductClasses
Sets the requested product classes- Parameter:
requestedProductClasses
- the requestedProductClasses to set
-
getInputProductClasses
Gets the input product classes provided to the order- Gibt zurück:
- the input product classes
-
setInputProductClasses
Sets the input product classes provided to the order- Parameter:
inputProductClasses
- the input product classes to set
-
getOutputFileClass
Gets the file class of the output products- Gibt zurück:
- the outputFileClass
-
setOutputFileClass
Sets the file class for the output products- Parameter:
outputFileClass
- the outputFileClass to set
-
getProcessingMode
Gets the processing mode for the processors- Gibt zurück:
- the processingMode
-
setProcessingMode
Sets the processing mode for the processors- Parameter:
processingMode
- the processingMode to set
-
getProductionType
Gets the production type context- Gibt zurück:
- the production type
-
setProductionType
Sets the production type context- Parameter:
productionType
- the production type to set
-
getNotificationEndpoint
- Gibt zurück:
- the notificationEndpoint
-
setNotificationEndpoint
- Parameter:
notificationEndpoint
- the notificationEndpoint to set
-
getProductRetentionPeriod
Gets the retention period for products generated by this processing order- Gibt zurück:
- the product retention period
-
setProductRetentionPeriod
Sets the retention period for products generated by this processing order- Parameter:
productRetentionPeriod
- the product retention period to set
-
getHasFailedJobSteps
Checks whether the order has failed job steps- Gibt zurück:
- true, if at least one job step is in FAILED state, false otherwise
-
hasFailedJobSteps
Checks whether the order has failed job 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 order has failed job steps- Parameter:
hasFailedJobSteps
- set to true, when a job step for this order fails
-
getWorkflow
Get the workflow- Gibt zurück:
- the workflow
-
setWorkflow
Set the workflow- Parameter:
workflow
- the workflow to set
-
getRequestedConfiguredProcessors
Gets the requested configured processors- Gibt zurück:
- the requestedConfiguredProcessors
-
setRequestedConfiguredProcessors
public void setRequestedConfiguredProcessors(Set<ConfiguredProcessor> requestedConfiguredProcessors) Sets the requested configured processors- Parameter:
requestedConfiguredProcessors
- the requestedConfiguredProcessors to set
-
getRequestedOrbits
Gets the requested orbits- Gibt zurück:
- the requestedOrbits
-
setRequestedOrbits
Sets the requested orbits- Parameter:
requestedOrbits
- the requestedOrbits to set
-
getJobs
Gets the processing jobs- Gibt zurück:
- the jobs
-
setJobs
Sets the processing jobs- Parameter:
jobs
- the jobs to set
-
getMonOrderProgress
Gets the order progress monitoring data- Gibt zurück:
- the order progress monitoring data
-
setMonOrderProgress
Sets the order progress monitoring data- Parameter:
monOrderProgress
- the order progress monitoring data to set
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCode
in KlassePersistentObject
-
equals
Beschreibung aus Klasse kopiert:PersistentObject
Test equality of persistent objects based on their unique ID.- Setzt außer Kraft:
equals
in 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
-