Package de.dlr.proseo.model
Class OrderTemplate
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.OrderTemplateBase
de.dlr.proseo.model.OrderTemplate
This class aims at simplifying the generation of processing orders, either for automatic generation due to
an OrderTrigger firing, or for manual generation, e. g. from the GUI or CLI. The template specifies values for
various attributes to be set in a ProcessingOrder.
- Since:
- prosEO 2.1.0
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the dynamic processing parameters to be set for the Job Orders in this orderGets the period of time, after which the order will fail or will automatically be started regardless of input data availabilityGets the input product classes provided to the orderGets the retention period for products generated by this processing orderGets the requested configured processorsGets the requested product classesbooleanIndicates whether a processing order reaching state COMPLETED will automatically be closedbooleanIndicates whether a processing order reaching state PLANNED will automatically be releasedbooleanIndicates whether the order will fail after the input data timeout period has elapsedvoidsetAutoClose(boolean autoClose) Sets a flag indicating whether a processing order reaching state COMPLETED shall automatically be closedvoidsetAutoRelease(boolean autoRelease) Sets a flag indicating whether a processing order reaching state PLANNED shall automatically be releasedvoidsetDynamicProcessingParameters(Map<String, Parameter> dynamicProcessingParameters) Sets the dynamic processing parameters to be set for the Job Orders in this ordervoidsetInputDataTimeoutPeriod(Duration inputDataTimeoutPeriod) Sets the period of time, after which the order shall fail or shall automatically be started regardless of input data availabilityvoidsetInputProductClasses(Set<ProductClass> inputProductClasses) Sets the input product classes provided to the ordervoidsetNotificationEndpoint(NotificationEndpoint notificationEndpoint) voidsetOnInputDataTimeoutFail(boolean onInputDataTimeoutFail) Sets a flag indicating whether the order will fail after the input data timeout period has elapsedvoidsetProductionType(ProductionType productionType) voidsetProductRetentionPeriod(Duration productRetentionPeriod) Sets the retention period for products generated by this processing ordervoidsetRequestedConfiguredProcessors(Set<ConfiguredProcessor> requestedConfiguredProcessors) Sets the requested configured processorsvoidsetRequestedProductClasses(Set<ProductClass> requestedProductClasses) Sets the requested product classestoString()Methods inherited from class de.dlr.proseo.model.OrderTemplateBase
equals, getClassOutputParameters, getEnabled, getInputFilters, getMission, getName, getOutputFileClass, getOutputParameters, getPriority, getProcessingMode, getSliceDuration, getSliceOverlap, getSlicingType, hashCode, isEnabled, setClassOutputParameters, setEnabled, setInputFilters, setMission, setName, setOutputFileClass, setOutputParameters, setPriority, setProcessingMode, setSliceDuration, setSliceOverlap, setSlicingTypeMethods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
OrderTemplate
public OrderTemplate()
-
-
Method Details
-
getProductionType
- Returns:
- the productionType
-
setProductionType
- Parameters:
productionType- the productionType to set
-
getDynamicProcessingParameters
Gets the dynamic processing parameters to be set for the Job Orders in this order- Returns:
- the dynamicProcessingParameters
-
setDynamicProcessingParameters
Sets the dynamic processing parameters to be set for the Job Orders in this order- Parameters:
dynamicProcessingParameters- the dynamicProcessingParameters to set
-
getRequestedProductClasses
Gets the requested product classes- Returns:
- the requestedProductClasses
-
setRequestedProductClasses
Sets the requested product classes- Parameters:
requestedProductClasses- the requestedProductClasses to set
-
getInputProductClasses
Gets the input product classes provided to the order- Returns:
- the input product classes
-
setInputProductClasses
Sets the input product classes provided to the order- Parameters:
inputProductClasses- the input product classes to set
-
getNotificationEndpoint
- Returns:
- the notificationEndpoint
-
setNotificationEndpoint
- Parameters:
notificationEndpoint- the notificationEndpoint to set
-
getProductRetentionPeriod
Gets the retention period for products generated by this processing order- Returns:
- the product retention period
-
setProductRetentionPeriod
Sets the retention period for products generated by this processing order- Parameters:
productRetentionPeriod- the product retention period to set
-
isAutoRelease
public boolean isAutoRelease()Indicates whether a processing order reaching state PLANNED will automatically be released- Returns:
- true, if the order will be released automatically, false otherwise
-
setAutoRelease
public void setAutoRelease(boolean autoRelease) Sets a flag indicating whether a processing order reaching state PLANNED shall automatically be released- Parameters:
autoRelease- set to true, if the order shall be released automatically, and to false otherwise
-
isAutoClose
public boolean isAutoClose()Indicates whether a processing order reaching state COMPLETED will automatically be closed- Returns:
- true, if the order will be closed automatically, false otherwise
-
setAutoClose
public void setAutoClose(boolean autoClose) Sets a flag indicating whether a processing order reaching state COMPLETED shall automatically be closed- Parameters:
autoClose- set to true, if the order shall be closed automatically, and to false otherwise
-
getInputDataTimeoutPeriod
Gets the period of time, after which the order will fail or will automatically be started regardless of input data availability- Returns:
- the input data timeout period
-
setInputDataTimeoutPeriod
Sets the period of time, after which the order shall fail or shall automatically be started regardless of input data availability- Parameters:
inputDataTimeoutPeriod- the input data timeout period to set
-
isOnInputDataTimeoutFail
public boolean isOnInputDataTimeoutFail()Indicates whether the order will fail after the input data timeout period has elapsed- Returns:
- true, if the order will fail after timeout, false, if it will be processed with incomplete input data
-
setOnInputDataTimeoutFail
public void setOnInputDataTimeoutFail(boolean onInputDataTimeoutFail) Sets a flag indicating whether the order will fail after the input data timeout period has elapsed- Parameters:
onInputDataTimeoutFail- set to true, if the order shall fail after timeout, and to false, if it shall be processed with incomplete input data
-
getRequestedConfiguredProcessors
Gets the requested configured processors- Returns:
- the requestedConfiguredProcessors
-
setRequestedConfiguredProcessors
public void setRequestedConfiguredProcessors(Set<ConfiguredProcessor> requestedConfiguredProcessors) Sets the requested configured processors- Parameters:
requestedConfiguredProcessors- the requestedConfiguredProcessors to set
-
toString
- Overrides:
toStringin classOrderTemplateBase
-