Class AdminConsumerService

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class AdminConsumerService
    extends AbstractVeniceService
    One consumer service for one cluster.
    • Method Detail

      • setOffsetToSkip

        public void setOffsetToSkip​(java.lang.String clusterName,
                                    long offset,
                                    boolean skipDIV)
        Skip admin message with specified offset for the given cluster.
      • getLastSucceededExecutionIdInCluster

        public java.lang.Long getLastSucceededExecutionIdInCluster​(java.lang.String clusterName)
        Get the last succeeded execution id for the given cluster.
        Parameters:
        clusterName - name of the Venice cluster.
        Returns:
        last succeeded execution id for the given cluster.
      • getLastSucceededExecutionId

        public java.lang.Long getLastSucceededExecutionId​(java.lang.String storeName)
        Get the last succeeded execution id for the given store.
        Parameters:
        storeName - name of the store.
        Returns:
        last succeeded execution id for the given store.
      • getLastExceptionForStore

        public java.lang.Exception getLastExceptionForStore​(java.lang.String storeName)
        Get the encountered exception during admin message consumption for the given store.
        Parameters:
        storeName - name of the store.
        Returns:
        last encountered exception.
      • getFailingOffset

        public long getFailingOffset()
        Returns:
        The first or the smallest failing offset.
      • getAdminTopicMetadata

        public java.util.Map<java.lang.String,​java.lang.Long> getAdminTopicMetadata​(java.lang.String clusterName)
        Returns:
        cluster-level execution id, offset, and upstream offset in a child colo.
      • updateAdminTopicMetadata

        public void updateAdminTopicMetadata​(java.lang.String clusterName,
                                             long executionId,
                                             long offset,
                                             long upstreamOffset)
        Update cluster-level execution id, offset, and upstream offset in a child colo.