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 java.lang.Object implements StoreDataChangedListener
Helper class which listens to changes from aReadOnlyStoreRepository
and updates the caches and ZK of the StoragePersonaRepository accordingly.
-
-
Constructor Summary
Constructors Constructor Description StoragePersonaStoreDataListener(StoragePersonaRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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(java.lang.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 Detail
-
StoragePersonaStoreDataListener
public StoragePersonaStoreDataListener(StoragePersonaRepository repository)
-
-
Method Detail
-
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 interfaceStoreDataChangedListener
-
handleStoreDeleted
public void handleStoreDeleted(java.lang.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 interfaceStoreDataChangedListener
-
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 interfaceStoreDataChangedListener
-
-