Class DataFeedProcessExecution
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
DataFeedProcess.
Admin users should almost never be responsible for making direct CRUD requests on this entity. The system should be in charge of managing these records.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanShould be copied fromDataFeedProcess.getApplicationId().com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.TheDataFeedProcess.getId()of theDataFeedProcesswhich this execution is for.Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds().The time at which this execution stopped processing.If errors are encountered during the run of this execution (ex:isContainsErrors()is true), details should be added here.Should be copied fromDataFeedProcess.getFilterString().getId()The context ID of this execution.Should be copied fromDataFeedProcess.getProcessType().After the raw data is fetched, the execution will serialize and store it in a JSON file.The time at which this execution started processing.Should contain a value fromDefaultDataFeedExecutionStatusesdescribing the current status of the execution.inthashCode()booleanA simple flag indicating whether the current execution encountered any errors.voidsetApplicationId(String applicationId) Should be copied fromDataFeedProcess.getApplicationId().voidsetContainsErrors(boolean containsErrors) A simple flag indicating whether the current execution encountered any errors.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDataFeedProcessId(String dataFeedProcessId) TheDataFeedProcess.getId()of theDataFeedProcesswhich this execution is for.voidsetDataFeedPublicationConfigurationIds(List<String> dataFeedPublicationConfigurationIds) Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds().voidsetEndTime(Instant endTime) The time at which this execution stopped processing.voidsetErrorDetails(List<String> errorDetails) If errors are encountered during the run of this execution (ex:isContainsErrors()is true), details should be added here.voidsetFilterString(String filterString) Should be copied fromDataFeedProcess.getFilterString().voidThe context ID of this execution.voidsetProcessType(String processType) Should be copied fromDataFeedProcess.getProcessType().voidsetQueriedDataFileLocation(String queriedDataFileLocation) After the raw data is fetched, the execution will serialize and store it in a JSON file.voidsetStartTime(Instant startTime) The time at which this execution started processing.voidShould contain a value fromDefaultDataFeedExecutionStatusesdescribing the current status of the execution.toString()
-
Constructor Details
-
DataFeedProcessExecution
public DataFeedProcessExecution()
-
-
Method Details
-
getId
The context ID of this execution.- Returns:
- the id of this data feed execution
-
getDataFeedProcessId
TheDataFeedProcess.getId()of theDataFeedProcesswhich this execution is for.- Returns:
- the ID of the data feed process this execution is for
-
getStartTime
The time at which this execution started processing.- Returns:
- the time at which this execution started processing
-
getEndTime
The time at which this execution stopped processing.- Returns:
- the time at which this execution stopped processing
-
getStatus
Should contain a value fromDefaultDataFeedExecutionStatusesdescribing the current status of the execution.When this is being changed, be sure to update
getStartTime()orgetEndTime()if appropriate.- Returns:
- the current status of the execution
-
isContainsErrors
public boolean isContainsErrors()A simple flag indicating whether the current execution encountered any errors.- Returns:
- whether this execution experienced errors
- See Also:
-
getErrorDetails
If errors are encountered during the run of this execution (ex:isContainsErrors()is true), details should be added here. Otherwise, this will be empty.- Returns:
- details about any errors experienced by this execution
- See Also:
-
getQueriedDataFileLocation
After the raw data is fetched, the execution will serialize and store it in a JSON file. This can then be used byDataFeedPublicationexecutions to transform + publish data.This field should contain the location of that file (including filename extension). This is usually something that can be directly passed to
StorageService. -
getProcessType
Should be copied fromDataFeedProcess.getProcessType().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Returns:
- value matching
DataFeedProcess.getProcessType()
-
getDataFeedPublicationConfigurationIds
Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Returns:
- value matching
DataFeedProcess.getDataFeedPublicationConfigurationIds()
-
getApplicationId
Should be copied fromDataFeedProcess.getApplicationId().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Returns:
- value matching
DataFeedProcess.getApplicationId()
-
getFilterString
Should be copied fromDataFeedProcess.getFilterString().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Returns:
- value matching
DataFeedProcess.getFilterString()
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
The context ID of this execution.- Parameters:
id- the id of this data feed execution
-
setDataFeedProcessId
TheDataFeedProcess.getId()of theDataFeedProcesswhich this execution is for.- Parameters:
dataFeedProcessId- the ID of the data feed process this execution is for
-
setStartTime
The time at which this execution started processing.- Parameters:
startTime- the time at which this execution started processing
-
setEndTime
The time at which this execution stopped processing.- Parameters:
endTime- the time at which this execution stopped processing
-
setStatus
Should contain a value fromDefaultDataFeedExecutionStatusesdescribing the current status of the execution.When this is being changed, be sure to update
getStartTime()orgetEndTime()if appropriate.- Parameters:
status- the current status of the execution
-
setContainsErrors
public void setContainsErrors(boolean containsErrors) A simple flag indicating whether the current execution encountered any errors.- Parameters:
containsErrors- whether this execution experienced errors- See Also:
-
setErrorDetails
If errors are encountered during the run of this execution (ex:isContainsErrors()is true), details should be added here. Otherwise, this will be empty.- Parameters:
errorDetails- details about any errors experienced by this execution- See Also:
-
setQueriedDataFileLocation
After the raw data is fetched, the execution will serialize and store it in a JSON file. This can then be used byDataFeedPublicationexecutions to transform + publish data.This field should contain the location of that file (including filename extension). This is usually something that can be directly passed to
StorageService. -
setProcessType
Should be copied fromDataFeedProcess.getProcessType().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Parameters:
processType- value matchingDataFeedProcess.getProcessType()
-
setDataFeedPublicationConfigurationIds
public void setDataFeedPublicationConfigurationIds(List<String> dataFeedPublicationConfigurationIds) Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Parameters:
dataFeedPublicationConfigurationIds- value matchingDataFeedProcess.getDataFeedPublicationConfigurationIds()
-
setApplicationId
Should be copied fromDataFeedProcess.getApplicationId().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Parameters:
applicationId- value matchingDataFeedProcess.getApplicationId()
-
setFilterString
Should be copied fromDataFeedProcess.getFilterString().This duplication protects the execution in case
DataFeedProcessis mutated after this starts.- Parameters:
filterString- value matchingDataFeedProcess.getFilterString()
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-