Class ScheduledJobStartedEvent

java.lang.Object
com.broadleafcommerce.common.messaging.domain.ScheduledJobStartedEvent

public class ScheduledJobStartedEvent extends Object
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 Details

    • ScheduledJobStartedEvent

      public ScheduledJobStartedEvent(String jobId, String tenantId, String jobType, String jobExecutionDetailId, Instant startTime, String note, Map<String,Object> attributes)
    • ScheduledJobStartedEvent

      public ScheduledJobStartedEvent()
  • Method Details

    • getJobId

      public String getJobId()
      The Context ID of the scheduled job for which this completion event is emitted
    • getTenantId

      public String getTenantId()
      The ID of the associated tenant
    • getJobType

      public String getJobType()
      The type of the job for which the completion event is emitted
    • getJobExecutionDetailId

      public String getJobExecutionDetailId()
      The Context ID of the scheduled job execution detail
    • getStartTime

      public Instant getStartTime()
      The time at which the scheduled job started its execution
    • getNote

      public String 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

      public Map<String,Object> getAttributes()
      A map to hold additional information on the event about the execution detail
    • setJobId

      public void setJobId(String jobId)
      The Context ID of the scheduled job for which this completion event is emitted
    • setTenantId

      public void setTenantId(String tenantId)
      The ID of the associated tenant
    • setJobType

      public void setJobType(String jobType)
      The type of the job for which the completion event is emitted
    • setJobExecutionDetailId

      public void setJobExecutionDetailId(String jobExecutionDetailId)
      The Context ID of the scheduled job execution detail
    • setStartTime

      public void setStartTime(Instant startTime)
      The time at which the scheduled job started its execution
    • setNote

      public void setNote(String note)
      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

      public void setAttributes(Map<String,Object> attributes)
      A map to hold additional information on the event about the execution detail
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object