Package com.linkedin.venice.controller
Interface ExecutionIdAccessor
- All Known Implementing Classes:
InMemoryExecutionIdAccessor
,ZkExecutionIdAccessor
public interface ExecutionIdAccessor
Accessor user to get/update the last execution id and the generated id from a storage.
-
Method Summary
Modifier and TypeMethodDescriptiongetLastGeneratedExecutionId
(String clusterName) Get the last id which is generated by execution tracker in the give cluster.getLastSucceededExecutionId
(String clusterName) Get the id for the last succeed operation in the given cluster.getLastSucceededExecutionIdMap
(String clusterName) Get the execution id map that contains the last succeeded operation in the given cluster for each store.incrementAndGetExecutionId
(String clusterName) Read the current value from ZK and try to increment the value by 1 and write it back to ZK.void
updateLastGeneratedExecutionId
(String clusterName, Long lastGeneratedExecutionId) Update the last id which is generated by execution tracker in the given cluster.void
updateLastSucceededExecutionId
(String clusterName, Long lastSucceedExecutionId) Update the id of the last succeed operation in the given cluster.void
updateLastSucceededExecutionIdMap
(String clusterName, String storeName, Long lastSucceededExecutionId) Update the execution id map that contains the last succeeded operation in the given cluster for each store.
-
Method Details
-
getLastSucceededExecutionId
Get the id for the last succeed operation in the given cluster. -
updateLastSucceededExecutionId
Update the id of the last succeed operation in the given cluster. -
getLastSucceededExecutionIdMap
Get the execution id map that contains the last succeeded operation in the given cluster for each store. -
updateLastSucceededExecutionIdMap
void updateLastSucceededExecutionIdMap(String clusterName, String storeName, Long lastSucceededExecutionId) Update the execution id map that contains the last succeeded operation in the given cluster for each store. -
getLastGeneratedExecutionId
Get the last id which is generated by execution tracker in the give cluster. -
updateLastGeneratedExecutionId
Update the last id which is generated by execution tracker in the given cluster. -
incrementAndGetExecutionId
Read the current value from ZK and try to increment the value by 1 and write it back to ZK.- Returns:
- updated execution id.
-