Package com.hazelcast.jet
Interface JobStatusListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Invoked upon job status change.
- This listener observes that the status is transitioned to
SUSPENDED
/FAILED
upon job suspension/termination,NOT_RUNNING
upon job resume/restart, andSUSPENDED_EXPORTING_SNAPSHOT
upon exporting snapshot, all of which are reported as user-initiated. Other transitions, such as fromNOT_RUNNING
toSTARTING
or fromSTARTING
toRUNNING
, are not reported as user-initiated. - This listener is not notified for
COMPLETING
status and observes that the status is transitioned fromRUNNING
toFAILED
upon job termination. - This listener is automatically deregistered after a terminal event.
- Since:
- 5.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
jobStatusChanged
(JobStatusEvent event) Invoked upon job status change.
-
Method Details
-
jobStatusChanged
Invoked upon job status change.- This listener observes that the status is transitioned to
SUSPENDED
/FAILED
upon job suspension/termination,NOT_RUNNING
upon job resume/restart, andSUSPENDED_EXPORTING_SNAPSHOT
upon exporting snapshot, all of which are reported as user-initiated. Other transitions, such as fromNOT_RUNNING
toSTARTING
or fromSTARTING
toRUNNING
, are not reported as user-initiated. - This listener is not notified for
COMPLETING
status and observes that the status is transitioned fromRUNNING
toFAILED
upon job termination. - This listener is automatically deregistered after a terminal event.
- Parameters:
event
- Holds information about the previous and new job statuses, reason for the status change, and whether it is user-initiated.
- This listener observes that the status is transitioned to
-