Package com.linkedin.venice.meta
Class StoreDataAudit
java.lang.Object
com.linkedin.venice.meta.StoreDataAudit
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAny()
int
int
void
void
void
setHealthyRegions
(Map<String, StoreInfo> healthyRegions) void
setLatestCreatedVersion
(int latestCreatedVersion) void
setLatestSuccessfulPushVersion
(int latestSuccessfulPushVersion) void
setStaleRegions
(Map<String, StoreInfo> staleRegions) void
setStoreName
(String storeName) toString()
-
Constructor Details
-
StoreDataAudit
public StoreDataAudit()
-
-
Method Details
-
getHealthyRegions
-
getStaleRegions
-
getLatestCreatedVersion
public int getLatestCreatedVersion() -
getLatestSuccessfulPushVersion
public int getLatestSuccessfulPushVersion() -
getStoreName
-
setHealthyRegions
-
setStaleRegions
-
setLatestCreatedVersion
public void setLatestCreatedVersion(int latestCreatedVersion) -
setLatestSuccessfulPushVersion
public void setLatestSuccessfulPushVersion(int latestSuccessfulPushVersion) -
setStoreName
-
insert
-
merge
-
getAny
-
toString
-