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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Should be copied fromDataFeedProcess.getApplicationId()
.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.TheDataFeedProcess.getId()
of theDataFeedProcess
which 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 fromDefaultDataFeedExecutionStatuses
describing the current status of the execution.int
hashCode()
boolean
A simple flag indicating whether the current execution encountered any errors.void
setApplicationId
(String applicationId) Should be copied fromDataFeedProcess.getApplicationId()
.void
setContainsErrors
(boolean containsErrors) A simple flag indicating whether the current execution encountered any errors.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDataFeedProcessId
(String dataFeedProcessId) TheDataFeedProcess.getId()
of theDataFeedProcess
which this execution is for.void
setDataFeedPublicationConfigurationIds
(List<String> dataFeedPublicationConfigurationIds) Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds()
.void
setEndTime
(Instant endTime) The time at which this execution stopped processing.void
setErrorDetails
(List<String> errorDetails) If errors are encountered during the run of this execution (ex:isContainsErrors()
is true), details should be added here.void
setFilterString
(String filterString) Should be copied fromDataFeedProcess.getFilterString()
.void
The context ID of this execution.void
setProcessType
(String processType) Should be copied fromDataFeedProcess.getProcessType()
.void
setQueriedDataFileLocation
(String queriedDataFileLocation) After the raw data is fetched, the execution will serialize and store it in a JSON file.void
setStartTime
(Instant startTime) The time at which this execution started processing.void
Should contain a value fromDefaultDataFeedExecutionStatuses
describing 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 theDataFeedProcess
which 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 fromDefaultDataFeedExecutionStatuses
describing 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 byDataFeedPublication
executions 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
DataFeedProcess
is mutated after this starts.- Returns:
- value matching
DataFeedProcess.getProcessType()
-
getDataFeedPublicationConfigurationIds
Should be copied fromDataFeedProcess.getDataFeedPublicationConfigurationIds()
.This duplication protects the execution in case
DataFeedProcess
is mutated after this starts.- Returns:
- value matching
DataFeedProcess.getDataFeedPublicationConfigurationIds()
-
getApplicationId
Should be copied fromDataFeedProcess.getApplicationId()
.This duplication protects the execution in case
DataFeedProcess
is mutated after this starts.- Returns:
- value matching
DataFeedProcess.getApplicationId()
-
getFilterString
Should be copied fromDataFeedProcess.getFilterString()
.This duplication protects the execution in case
DataFeedProcess
is mutated after this starts.- Returns:
- value matching
DataFeedProcess.getFilterString()
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 theDataFeedProcess
which 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 fromDefaultDataFeedExecutionStatuses
describing 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 byDataFeedPublication
executions 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
DataFeedProcess
is 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
DataFeedProcess
is mutated after this starts.- Parameters:
dataFeedPublicationConfigurationIds
- value matchingDataFeedProcess.getDataFeedPublicationConfigurationIds()
-
setApplicationId
Should be copied fromDataFeedProcess.getApplicationId()
.This duplication protects the execution in case
DataFeedProcess
is mutated after this starts.- Parameters:
applicationId
- value matchingDataFeedProcess.getApplicationId()
-
setFilterString
Should be copied fromDataFeedProcess.getFilterString()
.This duplication protects the execution in case
DataFeedProcess
is 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-