Package com.linkedin.venice.controller
Class VeniceVersionLifecycleEventManager
java.lang.Object
com.linkedin.venice.controller.VeniceVersionLifecycleEventManager
Event manager for
VeniceVersionLifecycleEventListener
. To start and to keep it simple we are only passing
the read-only version to the listeners along with the isSourceCluster flag to indicate if the event is from the
source cluster or not. This is useful for certain listeners that only care about the source cluster events during a
store migration. If needed we can also pass along the corresponding HelixVeniceClusterResources
to the
listeners for more complex use cases.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
onCurrentVersionChanged
(VeniceVersionLifecycleEventManager manager, String clusterName, Store store, int newCurrentVersion, int previousCurrentVersion, boolean isFutureVersion, boolean isMigrating, BiFunction<String, String, Boolean> isSourceClusterFn)
-
Constructor Details
-
VeniceVersionLifecycleEventManager
public VeniceVersionLifecycleEventManager()
-
-
Method Details
-
onCurrentVersionChanged
public static void onCurrentVersionChanged(VeniceVersionLifecycleEventManager manager, String clusterName, Store store, int newCurrentVersion, int previousCurrentVersion, boolean isFutureVersion, boolean isMigrating, BiFunction<String, String, Boolean> isSourceClusterFn) -
addListener
-