Package com.linkedin.venice.helix
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleStoreChanged
(Store store) Currently, changing the size of a store while it is part of a persona is undefined behavior.void
handleStoreCreated
(Store store) Currently, specifying a persona that a store should be added to is not supported.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.meta.StoreDataChangedListener
handleStoreDeleted
-
Constructor Details
-
StoragePersonaStoreDataListener
-
-
Method Details
-
handleStoreCreated
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 interfaceStoreDataChangedListener
-
handleStoreDeleted
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 interfaceStoreDataChangedListener
-
handleStoreChanged
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 interfaceStoreDataChangedListener
-