Package com.linkedin.venice.helix
Class HelixStoreGraveyard
java.lang.Object
com.linkedin.venice.helix.HelixStoreGraveyard
- All Implemented Interfaces:
StoreGraveyard
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHelixStoreGraveyard
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Collection<String> clusterNames) HelixStoreGraveyard
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Collection<String> clusterNames, VeniceSerializer<Store> storeSerializer) -
Method Summary
Modifier and TypeMethodDescriptionint
getLargestUsedVersionNumber
(String storeName) Retrieve the largest used version number by the given store name from graveyard.getStoreFromGraveyard
(String clusterName, String storeName, org.apache.zookeeper.data.Stat stat) Get store from the graveyard in the specified cluster.listStoreNamesFromGraveyard
(String clusterName) List store names from graveyard in the specified cluster.void
putStoreIntoGraveyard
(String clusterName, Store store) Put the given store into graveyard.void
removeStoreFromGraveyard
(String clusterName, String storeName) Remove the given store from graveyard in the specified cluster.
-
Field Details
-
STORE_GRAVEYARD_PATH
- See Also:
-
dataAccessor
-
-
Constructor Details
-
HelixStoreGraveyard
public HelixStoreGraveyard(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Collection<String> clusterNames) -
HelixStoreGraveyard
public HelixStoreGraveyard(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, Collection<String> clusterNames, VeniceSerializer<Store> storeSerializer)
-
-
Method Details
-
getLargestUsedVersionNumber
Description copied from interface:StoreGraveyard
Retrieve the largest used version number by the given store name from graveyard. Return 0 if the store dose not exist in the graveyard, which is the default value we used for the new store.- Specified by:
getLargestUsedVersionNumber
in interfaceStoreGraveyard
-
putStoreIntoGraveyard
Description copied from interface:StoreGraveyard
Put the given store into graveyard. If the store has already existed in the graveyard, update it by this given store.- Specified by:
putStoreIntoGraveyard
in interfaceStoreGraveyard
-
getStoreFromGraveyard
public Store getStoreFromGraveyard(String clusterName, String storeName, org.apache.zookeeper.data.Stat stat) Description copied from interface:StoreGraveyard
Get store from the graveyard in the specified cluster.- Specified by:
getStoreFromGraveyard
in interfaceStoreGraveyard
-
removeStoreFromGraveyard
Description copied from interface:StoreGraveyard
Remove the given store from graveyard in the specified cluster.- Specified by:
removeStoreFromGraveyard
in interfaceStoreGraveyard
-
listStoreNamesFromGraveyard
Description copied from interface:StoreGraveyard
List store names from graveyard in the specified cluster.- Specified by:
listStoreNamesFromGraveyard
in interfaceStoreGraveyard
-