Package org.apache.sling.event.jobs
Class NotificationConstants
java.lang.Object
org.apache.sling.event.jobs.NotificationConstants
This class contains constants for event notifications.
Notifications for jobs can only be received on the instance where the job
action is taking place. They are not send to other instances using
remove events.
- Since:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty containing the unique job ID.static final StringProperty containing the job topic.static final StringAsynchronous notification event when a job is added.static final StringAsynchronous notification event when a job is cancelled.static final StringAsynchronous notification event when a job failed.static final StringAsynchronous notification event when a job is finished.static final StringAsynchronous notification event when a job is permanently removed.static final StringAsynchronous notification event when a job is started. -
Method Summary
-
Field Details
-
TOPIC_JOB_STARTED
Asynchronous notification event when a job is started. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id. The time stamp of the event (as a Long) is available from the propertyEventConstants.TIMESTAMP. The payload of the job is available as additional job specific properties.- See Also:
-
TOPIC_JOB_FINISHED
Asynchronous notification event when a job is finished. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id. The time stamp of the event (as a Long) is available from the propertyEventConstants.TIMESTAMP. The payload of the job is available as additional job specific properties.- See Also:
-
TOPIC_JOB_FAILED
Asynchronous notification event when a job failed. If a job execution fails, it is rescheduled for another try. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id. The time stamp of the event (as a Long) is available from the propertyEventConstants.TIMESTAMP. The payload of the job is available as additional job specific properties.- See Also:
-
TOPIC_JOB_CANCELLED
Asynchronous notification event when a job is cancelled. If a job execution is cancelled it is not rescheduled. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id. The time stamp of the event (as a Long) is available from the propertyEventConstants.TIMESTAMP. The payload of the job is available as additional job specific properties.- See Also:
-
TOPIC_JOB_REMOVED
Asynchronous notification event when a job is permanently removed. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id. The payload of the job is available as additional job specific properties.- See Also:
-
TOPIC_JOB_ADDED
Asynchronous notification event when a job is added. The propertyNOTIFICATION_PROPERTY_JOB_TOPICcontains the job topic, the propertyNOTIFICATION_PROPERTY_JOB_IDcontains the unique job id.- Since:
- 1.6
- See Also:
-
NOTIFICATION_PROPERTY_JOB_TOPIC
Property containing the job topic. Value is of type String.- See Also:
-
NOTIFICATION_PROPERTY_JOB_ID
Property containing the unique job ID. Value is of type String.- See Also:
-