Enable HelixManager as an event listener (#1978)
authorMolly Gao <31704180+mgao0@users.noreply.github.com>
Mon, 21 Mar 2022 20:31:35 +0000 (13:31 -0700)
committerJunkai Xue <junkai.xue@gmail.com>
Thu, 7 Apr 2022 23:26:21 +0000 (16:26 -0700)
commita1c52ed2088f73206c855b889cc1d55460a7d07d
treec2b9b1ee6de8170523730d74a3c02311f5583169
parente7929ae5f08d49e86674694de5e71ed4f88f0521
Enable HelixManager as an event listener (#1978)

Make helix manager cloud event aware by registering a cloud event listener when connect Helix manager
helix-core/src/main/java/org/apache/helix/HelixCloudProperty.java
helix-core/src/main/java/org/apache/helix/cloud/event/CloudEventHandler.java
helix-core/src/main/java/org/apache/helix/cloud/event/CloudEventListener.java
helix-core/src/main/java/org/apache/helix/cloud/event/helix/CloudEventCallbackProperty.java [new file with mode: 0644]
helix-core/src/main/java/org/apache/helix/cloud/event/helix/DefaultCloudEventCallbackImpl.java [new file with mode: 0644]
helix-core/src/main/java/org/apache/helix/cloud/event/helix/HelixCloudEventListener.java [new file with mode: 0644]
helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixManager.java
helix-core/src/test/java/org/apache/helix/cloud/event/MockCloudEventCallbackImpl.java [new file with mode: 0644]
helix-core/src/test/java/org/apache/helix/cloud/event/TestCloudEventCallbackProperty.java [new file with mode: 0644]