Class ScheduledJobCompletedEvent
java.lang.Object
com.broadleafcommerce.common.messaging.domain.ScheduledJobCompletedEvent
A DTO containing information about an event emitted when a ScheduledJob (from
ScheduledJobServices) finishes its execution.
This is used to create a ScheduledJobExecutionDetail for recording the history of past executions of a scheduled job.
- Author:
- karanjariwala
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A map to hold additional information on the event about the execution detailThe time at which the scheduled job finished its executiongetError()
The message to be set on the scheduled job execution detail in case an error occurs.The Context ID of the scheduled job execution detailgetJobId()
The Context ID of the scheduled job for which this completion event is emittedThe type of the job for which this completion event is emittedgetNote()
A note/message to be set on the scheduled job execution detail.The ID of the associated tenantint
hashCode()
boolean
A flag indicating whether the scheduled job finished successfullyvoid
setAttributes
(Map<String, Object> attributes) A map to hold additional information on the event about the execution detailvoid
setEndTime
(Instant endTime) The time at which the scheduled job finished its executionvoid
The message to be set on the scheduled job execution detail in case an error occurs.void
setJobExecutionDetailId
(String jobExecutionDetailId) The Context ID of the scheduled job execution detailvoid
The Context ID of the scheduled job for which this completion event is emittedvoid
setJobType
(String jobType) The type of the job for which this completion event is emittedvoid
A note/message to be set on the scheduled job execution detail.void
setSuccess
(boolean success) A flag indicating whether the scheduled job finished successfullyvoid
setTenantId
(String tenantId) The ID of the associated tenanttoString()
-
Constructor Details
-
ScheduledJobCompletedEvent
-
ScheduledJobCompletedEvent
public ScheduledJobCompletedEvent()
-
-
Method Details
-
getJobId
The Context ID of the scheduled job for which this completion event is emitted -
getTenantId
The ID of the associated tenant -
getJobType
The type of the job for which this completion event is emitted -
getJobExecutionDetailId
The Context ID of the scheduled job execution detail -
getEndTime
The time at which the scheduled job finished its execution -
isSuccess
public boolean isSuccess()A flag indicating whether the scheduled job finished successfully -
getNote
A note/message to be set on the scheduled job execution detail. In case of a successful execution, it will be set with information about the job execution -
getError
The message to be set on the scheduled job execution detail in case an error occurs. In case of an unsuccessful execution, it will be set with error information about the job execution -
getAttributes
A map to hold additional information on the event about the execution detail -
setJobId
The Context ID of the scheduled job for which this completion event is emitted -
setTenantId
The ID of the associated tenant -
setJobType
The type of the job for which this completion event is emitted -
setJobExecutionDetailId
The Context ID of the scheduled job execution detail -
setEndTime
The time at which the scheduled job finished its execution -
setSuccess
public void setSuccess(boolean success) A flag indicating whether the scheduled job finished successfully -
setNote
A note/message to be set on the scheduled job execution detail. In case of a successful execution, it will be set with information about the job execution -
setError
The message to be set on the scheduled job execution detail in case an error occurs. In case of an unsuccessful execution, it will be set with error information about the job execution -
setAttributes
A map to hold additional information on the event about the execution detail -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-