Class StoreLifecycleHooksPolicy
java.lang.Object
com.linkedin.venice.controller.storeconfig.StoreLifecycleHooksPolicy
Validation rules for the per-store lifecycle-hooks list, applied at update-store time.
Pure computation against in-memory state; no I/O.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<LifecycleHooksRecord>validateLifecycleHooks(Store oldStore, Optional<List<LifecycleHooksRecord>> newLifecycleHooks) Resolve the effective lifecycle-hooks list for a store update: when the caller did not supply a new list, keep the current one; when they did, reject any entry without a class name and otherwise return the new list as-is.
-
Method Details
-
validateLifecycleHooks
public static List<LifecycleHooksRecord> validateLifecycleHooks(Store oldStore, Optional<List<LifecycleHooksRecord>> newLifecycleHooks) Resolve the effective lifecycle-hooks list for a store update: when the caller did not supply a new list, keep the current one; when they did, reject any entry without a class name and otherwise return the new list as-is.
-