Class AdminConsumerService

java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.controller.kafka.consumer.AdminConsumerService
All Implemented Interfaces:
Closeable, AutoCloseable

public class AdminConsumerService extends AbstractVeniceService
One consumer service for one cluster.
  • Constructor Details

  • Method Details

    • startInner

      public boolean startInner() throws Exception
      Specified by:
      startInner in class AbstractVeniceService
      Returns:
      true if the service is completely started, false if it is still starting asynchronously (in this case, it is the implementer's responsibility to set AbstractVeniceService.serviceState to AbstractVeniceService.ServiceState.STARTED upon completion of the async work).
      Throws:
      Exception
    • stopInner

      public void stopInner() throws Exception
      Specified by:
      stopInner in class AbstractVeniceService
      Throws:
      Exception
    • setOffsetToSkip

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

      public Long getLastSucceededExecutionIdInCluster(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 Long getLastSucceededExecutionId(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 Exception getLastExceptionForStore(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 Map<String,Long> getAdminTopicMetadata(String clusterName)
      Returns:
      cluster-level execution id, offset, and upstream offset in a child colo.
    • updateAdminTopicMetadata

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

      public PubSubMessageDeserializer getDeserializer()