Skip to content

Add ClusterListener Support for Cluster Node Failure Detection - #1474

Open
accevolve wants to merge 1 commit into
quartz-scheduler:mainfrom
accevolve:add_cluster_listener
Open

Add ClusterListener Support for Cluster Node Failure Detection#1474
accevolve wants to merge 1 commit into
quartz-scheduler:mainfrom
accevolve:add_cluster_listener

Conversation

@accevolve

Copy link
Copy Markdown

This PR introduces a ClusterListener mechanism to the Quartz framework, enabling applications to receive notifications when a cluster node failure is detected. When the ClusterManager identifies a failed instance, registered ClusterListeners will be notified with the failed node's instance ID.

Fixes issue #1473

Changes

Component Changes
ListenerManager Add register/remove methods for ClusterListener
ListenerManagerImpl Implementation of ClusterListener management
SchedulerSignaler Add notifyClusterListenersNodeFailed() method
SchedulerSignalerImpl Delegate to QuartzScheduler
QuartzScheduler Manage ClusterListener list and execute notifications
JobStoreSupport Trigger notification on node failure detection

Checklist

  • tested locally
  • updated the docs
  • added appropriate test
  • signed-off on the DCO referenced in the CONTRIBUTING link below via git commit -s on my commits, and submit this code under terms of the Apache 2.0 license and assign copyright to the Quartz project owners
    (If you're not using command-line, you can use a browser extension )

In submitting this contribution, I agree to the terms of contributing as referred to here:
https://github.com/quartz-scheduler/contributing/blob/main/CONTRIBUTING.md

Signed-off-by: Liam Chen <accevolve@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant