Class StoragePersonaRepository.StoragePersonaStoreDataListener

java.lang.Object
com.linkedin.venice.helix.StoragePersonaRepository.StoragePersonaStoreDataListener
All Implemented Interfaces:
StoreDataChangedListener
Enclosing class:
StoragePersonaRepository

public static class StoragePersonaRepository.StoragePersonaStoreDataListener extends Object implements StoreDataChangedListener
Helper class which listens to changes from a ReadOnlyStoreRepository and updates the caches and ZK of the StoragePersonaRepository accordingly.
  • Constructor Details

  • Method Details

    • handleStoreCreated

      public void handleStoreCreated(Store store)
      Currently, specifying a persona that a store should be added to is not supported. Thus, this method does nothing for now, but may be implemented in future versions.
      Specified by:
      handleStoreCreated in interface StoreDataChangedListener
    • handleStoreDeleted

      public void handleStoreDeleted(String storeName)
      This function removes the given store (if it exists) from any existing personas, both in the cache and in ZK, and then removes the mapping from the store to the personas.
      Specified by:
      handleStoreDeleted in interface StoreDataChangedListener
    • handleStoreChanged

      public void handleStoreChanged(Store store)
      Currently, changing the size of a store while it is part of a persona is undefined behavior. Thus, this method does nothing for now, but may be implemented in future versions.
      Specified by:
      handleStoreChanged in interface StoreDataChangedListener