Class HelixStoreGraveyard

java.lang.Object
com.linkedin.venice.helix.HelixStoreGraveyard
All Implemented Interfaces:
StoreGraveyard

public class HelixStoreGraveyard extends Object implements StoreGraveyard
  • Field Details

    • STORE_GRAVEYARD_PATH

      public static final String STORE_GRAVEYARD_PATH
      See Also:
    • STORE_NOT_IN_GRAVEYARD

      public static final long STORE_NOT_IN_GRAVEYARD
      Constant indicating that a store does not exist in the graveyard.
      See Also:
    • dataAccessor

      protected org.apache.helix.manager.zk.ZkBaseDataAccessor<Store> dataAccessor
  • Constructor Details

  • Method Details

    • getLargestUsedRTVersionNumber

      public int getLargestUsedRTVersionNumber(String storeName)
      Description copied from interface: StoreGraveyard
      Retrieve the largest used version number for the real time topic by the given store name from graveyard. Return 0 if the store does not exist in the graveyard, which is the default value we used for the new store.
      Specified by:
      getLargestUsedRTVersionNumber in interface StoreGraveyard
    • getLargestUsedVersionNumber

      public int getLargestUsedVersionNumber(String storeName)
      Description copied from interface: StoreGraveyard
      Retrieve the largest used version number by the given store name from graveyard. Return 0 if the store does not exist in the graveyard, which is the default value we used for the new store.
      Specified by:
      getLargestUsedVersionNumber in interface StoreGraveyard
    • putStoreIntoGraveyard

      public void putStoreIntoGraveyard(String clusterName, Store store)
      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 interface StoreGraveyard
    • 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 interface StoreGraveyard
    • getStoreDeletedTime

      public long getStoreDeletedTime(String clusterName, String storeName)
      Get the deletion time of a store in the graveyard. This returns the modification time of the ZNode, which represents when the store was last put into the graveyard or when the graveyard entry was last updated. Note that this may not be the original deletion time if the store has been deleted multiple times or the graveyard entry has been modified.
      Specified by:
      getStoreDeletedTime in interface StoreGraveyard
      Parameters:
      clusterName - the cluster name
      storeName - the store name
      Returns:
      the ZNode modification time in milliseconds since epoch, or STORE_NOT_IN_GRAVEYARD if the store doesn't exist in graveyard
    • removeStoreFromGraveyard

      public void removeStoreFromGraveyard(String clusterName, String storeName)
      Description copied from interface: StoreGraveyard
      Remove the given store from graveyard in the specified cluster.
      Specified by:
      removeStoreFromGraveyard in interface StoreGraveyard
    • listStoreNamesFromGraveyard

      public List<String> listStoreNamesFromGraveyard(String clusterName)
      Description copied from interface: StoreGraveyard
      List store names from graveyard in the specified cluster.
      Specified by:
      listStoreNamesFromGraveyard in interface StoreGraveyard