Class ScheduledJobStartedEvent
java.lang.Object
com.broadleafcommerce.common.messaging.domain.ScheduledJobStartedEvent
A DTO containing information about an event emitted when a ScheduledJob (from
ScheduledJobServices) starts 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 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 the completion event is emittedgetNote()
A note/message to be set on the scheduled job execution detail.The time at which the scheduled job started its executionThe ID of the associated tenantint
hashCode()
void
setAttributes
(Map<String, Object> attributes) A map to hold additional information on the event about the execution detailvoid
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 the completion event is emittedvoid
A note/message to be set on the scheduled job execution detail.void
setStartTime
(Instant startTime) The time at which the scheduled job started its executionvoid
setTenantId
(String tenantId) The ID of the associated tenanttoString()
-
Constructor Details
-
ScheduledJobStartedEvent
-
ScheduledJobStartedEvent
public ScheduledJobStartedEvent()
-
-
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 the completion event is emitted -
getJobExecutionDetailId
The Context ID of the scheduled job execution detail -
getStartTime
The time at which the scheduled job started its execution -
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 -
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 the completion event is emitted -
setJobExecutionDetailId
The Context ID of the scheduled job execution detail -
setStartTime
The time at which the scheduled job started its execution -
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 -
setAttributes
A map to hold additional information on the event about the execution detail -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-