@FunctionalInterface public interface JobStatusListener
SUSPENDED/FAILED upon job
suspension/termination,
NOT_RUNNING upon job resume/restart, and SUSPENDED_EXPORTING_SNAPSHOT
upon exporting snapshot, all of which
are reported as user-initiated. Other transitions, such as from NOT_RUNNING to STARTING or from STARTING to RUNNING, are not reported as user-initiated.
COMPLETING status and observes that the status is transitioned from
RUNNING to FAILED
upon job termination.
Job.addStatusListener(JobStatusListener),
Job.removeStatusListener(UUID)| Modifier and Type | Method and Description |
|---|---|
void |
jobStatusChanged(JobStatusEvent event)
Invoked upon job status change.
|
void jobStatusChanged(JobStatusEvent event)
SUSPENDED/FAILED upon job
suspension/termination,
NOT_RUNNING upon job resume/restart, and SUSPENDED_EXPORTING_SNAPSHOT
upon exporting snapshot, all of which
are reported as user-initiated. Other transitions, such as from NOT_RUNNING to STARTING or from STARTING to RUNNING, are not reported as user-initiated.
COMPLETING status and observes that the status is transitioned from
RUNNING to FAILED
upon job termination.
event - Holds information about the previous and new job statuses,
reason for the status change, and whether it is user-initiated.Copyright © 2023 Hazelcast, Inc.. All rights reserved.