Class ScheduledJobExecutionDetail
java.lang.Object
com.broadleafcommerce.scheduledjob.domain.ScheduledJobExecutionDetail
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class ScheduledJobExecutionDetail
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
Represents a DTO to hold the execution details of a scheduled job. Its instance is created for
each scheduled job execution.
It is used for recording the history of past executions of a scheduled job.
- Since:
- Scheduled Job Service 2.1.4, Release Train 2.1.4, Scheduled Job Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScheduledJobExecutionDetail
(String jobId, String executionId, String status, Instant triggerTime, Instant startTime, Instant endTime, Instant lastUpdatedTime, String noteMessage, String errorMessage, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState, Map<String, Object> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A map to hold additional information on the execution detailcom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The time at which the scheduled job finishes executionThe error message if any to set on the execution detail.The context ID of the execution detailgetJobId()
The ID of the scheduled job for which this execution detail is createdThe time at which the scheduled job is last updatedThe execution note/message to be set on the execution detail.The time at which the scheduled job starts executionThe execution status of the scheduled jobThe time at which the scheduled job is triggeredint
hashCode()
void
setAttributes
(Map<String, Object> attributes) A map to hold additional information on the execution detailvoid
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setEndTime
(Instant endTime) The time at which the scheduled job finishes executionvoid
setErrorMessage
(String errorMessage) The error message if any to set on the execution detail.void
setExecutionId
(String executionId) The context ID of the execution detailvoid
The ID of the scheduled job for which this execution detail is createdvoid
setLastUpdatedTime
(Instant lastUpdatedTime) The time at which the scheduled job is last updatedvoid
setNoteMessage
(String noteMessage) The execution note/message to be set on the execution detail.void
setStartTime
(Instant startTime) The time at which the scheduled job starts executionvoid
The execution status of the scheduled jobvoid
setTriggerTime
(Instant triggerTime) The time at which the scheduled job is triggeredtoString()
-
Constructor Details
-
ScheduledJobExecutionDetail
public ScheduledJobExecutionDetail(String jobId, String executionId, String status, Instant triggerTime, Instant startTime, Instant endTime, Instant lastUpdatedTime, String noteMessage, String errorMessage, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState, Map<String, Object> attributes) -
ScheduledJobExecutionDetail
public ScheduledJobExecutionDetail()
-
-
Method Details
-
getJobId
The ID of the scheduled job for which this execution detail is created -
getExecutionId
The context ID of the execution detail -
getStatus
The execution status of the scheduled job- See Also:
-
getTriggerTime
The time at which the scheduled job is triggered -
getStartTime
The time at which the scheduled job starts execution -
getEndTime
The time at which the scheduled job finishes execution -
getLastUpdatedTime
The time at which the scheduled job is last updated -
getNoteMessage
The execution note/message to be set on the execution detail. In case of a successful execution, it will be set with information about the job execution -
getErrorMessage
The error message if any to set on the execution detail. In case of an unsuccessful execution, it will be set with error information about the job execution -
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
-
getAttributes
A map to hold additional information on the execution detail -
setJobId
The ID of the scheduled job for which this execution detail is created -
setExecutionId
The context ID of the execution detail -
setStatus
The execution status of the scheduled job- See Also:
-
setTriggerTime
The time at which the scheduled job is triggered -
setStartTime
The time at which the scheduled job starts execution -
setEndTime
The time at which the scheduled job finishes execution -
setLastUpdatedTime
The time at which the scheduled job is last updated -
setNoteMessage
The execution note/message to be set on the execution detail. In case of a successful execution, it will be set with information about the job execution -
setErrorMessage
The error message if any to set on the execution detail. In case of an unsuccessful execution, it will be set with error information about the job execution -
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
-
setAttributes
A map to hold additional information on the execution detail -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-