Class StoreDataAudit

java.lang.Object
com.linkedin.venice.meta.StoreDataAudit

public class StoreDataAudit extends Object
This is a class used to manage multiple replicas of the same store. The insert function will determine the latest version of the store across all replicas, and store the StoreInfo in either healthy or stale region map, rebalancing these when needed. The class also keeps version info about replicas at the top level, with latestCreatedVersion and latestSuccessfulPushVersion being maintained internally.
  • Constructor Details

    • StoreDataAudit

      public StoreDataAudit()
  • Method Details

    • getHealthyRegions

      public Map<String,StoreInfo> getHealthyRegions()
    • getStaleRegions

      public Map<String,StoreInfo> getStaleRegions()
    • getLatestCreatedVersion

      public int getLatestCreatedVersion()
    • getLatestSuccessfulPushVersion

      public int getLatestSuccessfulPushVersion()
    • getStoreName

      public String getStoreName()
    • setHealthyRegions

      public void setHealthyRegions(Map<String,StoreInfo> healthyRegions)
    • setStaleRegions

      public void setStaleRegions(Map<String,StoreInfo> staleRegions)
    • setLatestCreatedVersion

      public void setLatestCreatedVersion(int latestCreatedVersion)
    • setLatestSuccessfulPushVersion

      public void setLatestSuccessfulPushVersion(int latestSuccessfulPushVersion)
    • setStoreName

      public void setStoreName(String storeName)
    • insert

      public void insert(String regionName, StoreInfo info)
    • merge

      public void merge(StoreDataAudit a)
    • getAny

      public StoreInfo getAny()
    • toString

      public String toString()
      Overrides:
      toString in class Object