Class AdminConsumerService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.controller.kafka.consumer.AdminConsumerService
- All Implemented Interfaces:
- Closeable,- AutoCloseable
One consumer service for one cluster.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.linkedin.venice.service.AbstractVeniceServiceAbstractVeniceService.ServiceState
- 
Field SummaryFields inherited from class com.linkedin.venice.service.AbstractVeniceServicelogger, serviceState
- 
Constructor SummaryConstructorsConstructorDescriptionAdminConsumerService(VeniceHelixAdmin admin, VeniceControllerClusterConfig config, io.tehuti.metrics.MetricsRepository metricsRepository, PubSubConsumerAdapterFactory consumerFactory, PubSubTopicRepository pubSubTopicRepository, PubSubMessageDeserializer pubSubMessageDeserializer) 
- 
Method SummaryModifier and TypeMethodDescriptiongetAdminTopicMetadata(String clusterName) longgetLastExceptionForStore(String storeName) Get the encountered exception during admin message consumption for the given store.getLastSucceededExecutionId(String storeName) Get the last succeeded execution id for the given store.getLastSucceededExecutionIdInCluster(String clusterName) Get the last succeeded execution id for the given cluster.voidsetExecutionIdToSkip(String clusterName, long executionId, boolean skipDIV) voidsetOffsetToSkip(String clusterName, long offset, boolean skipDIV) Skip admin message with specified offset for the given cluster.booleanvoidvoidupdateAdminOperationProtocolVersion(String clusterName, long adminOperationProtocolVersion) Update the admin operation protocol version for the given cluster.voidupdateAdminTopicMetadata(String clusterName, long executionId, long offset, long upstreamOffset) Update cluster-level execution id, position, and upstream position in a child colo.
- 
Constructor Details- 
AdminConsumerServicepublic AdminConsumerService(VeniceHelixAdmin admin, VeniceControllerClusterConfig config, io.tehuti.metrics.MetricsRepository metricsRepository, PubSubConsumerAdapterFactory consumerFactory, PubSubTopicRepository pubSubTopicRepository, PubSubMessageDeserializer pubSubMessageDeserializer) 
 
- 
- 
Method Details- 
startInner- Specified by:
- startInnerin 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.serviceStatetoAbstractVeniceService.ServiceState.STARTEDupon completion of the async work).
- Throws:
- Exception
 
- 
stopInner- Specified by:
- stopInnerin class- AbstractVeniceService
- Throws:
- Exception
 
- 
setOffsetToSkipSkip admin message with specified offset for the given cluster.
- 
setExecutionIdToSkip
- 
getLastSucceededExecutionIdInClusterGet 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.
 
- 
getLastSucceededExecutionIdGet the last succeeded execution id for the given store.- Parameters:
- storeName- name of the store.
- Returns:
- last succeeded execution id for the given store.
 
- 
getLastExceptionForStoreGet the encountered exception during admin message consumption for the given store.- Parameters:
- storeName- name of the store.
- Returns:
- last encountered exception.
 
- 
getFailingPosition- Returns:
- The first or the smallest failing position.
 
- 
getFailingExecutionIdpublic long getFailingExecutionId()- Returns:
- The first or the smallest failing execution id.
 
- 
getAdminTopicMetadata- Returns:
- cluster-level execution id, position, and upstream position in a child colo.
 
- 
updateAdminTopicMetadatapublic void updateAdminTopicMetadata(String clusterName, long executionId, long offset, long upstreamOffset) Update cluster-level execution id, position, and upstream position in a child colo.
- 
updateAdminOperationProtocolVersionpublic void updateAdminOperationProtocolVersion(String clusterName, long adminOperationProtocolVersion) Update the admin operation protocol version for the given cluster.
- 
getDeserializer
 
-