Package com.linkedin.davinci.helix
Class HelixParticipationService
- java.lang.Object
-
- com.linkedin.venice.service.AbstractVeniceService
-
- com.linkedin.davinci.helix.HelixParticipationService
-
- All Implemented Interfaces:
StatusMessageHandler<KillOfflinePushMessage>
,java.io.Closeable
,java.lang.AutoCloseable
public class HelixParticipationService extends AbstractVeniceService implements StatusMessageHandler<KillOfflinePushMessage>
Venice Participation Service wrapping Helix Participant.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.linkedin.venice.service.AbstractVeniceService
AbstractVeniceService.ServiceState
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.service.AbstractVeniceService
logger, serviceState
-
-
Constructor Summary
Constructors Constructor Description HelixParticipationService(StoreIngestionService storeIngestionService, StorageService storageService, StorageMetadataService storageMetadataService, VeniceConfigLoader veniceConfigLoader, ReadOnlyStoreRepository helixReadOnlyStoreRepository, ReadOnlySchemaRepository helixReadOnlySchemaRepository, io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String zkAddress, java.lang.String clusterName, int port, java.lang.String hostname, java.util.concurrent.CompletableFuture<SafeHelixManager> managerFuture, HeartbeatMonitoringService heartbeatMonitoringService, BlobTransferManager blobTransferManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.helix.HelixManagerProperty
buildHelixManagerProperty(VeniceServerConfig config)
ReadOnlyStoreRepository
getHelixReadOnlyStoreRepository()
Instance
getInstance()
KafkaStoreIngestionService
getKafkaStoreIngestionService()
java.util.concurrent.ThreadPoolExecutor
getLeaderFollowerHelixStateTransitionThreadPool()
PushStatusStoreWriter
getStatusStoreWriter()
VeniceOfflinePushMonitorAccessor
getVeniceOfflinePushMonitorAccessor()
void
handleMessage(KillOfflinePushMessage message)
void
replaceAndAddTestIngestionNotifier(VeniceNotifier notifier)
boolean
startInner()
void
stopInner()
-
-
-
Constructor Detail
-
HelixParticipationService
public HelixParticipationService(StoreIngestionService storeIngestionService, StorageService storageService, StorageMetadataService storageMetadataService, VeniceConfigLoader veniceConfigLoader, ReadOnlyStoreRepository helixReadOnlyStoreRepository, ReadOnlySchemaRepository helixReadOnlySchemaRepository, io.tehuti.metrics.MetricsRepository metricsRepository, java.lang.String zkAddress, java.lang.String clusterName, int port, java.lang.String hostname, java.util.concurrent.CompletableFuture<SafeHelixManager> managerFuture, HeartbeatMonitoringService heartbeatMonitoringService, BlobTransferManager blobTransferManager)
-
-
Method Detail
-
getLeaderFollowerHelixStateTransitionThreadPool
public java.util.concurrent.ThreadPoolExecutor getLeaderFollowerHelixStateTransitionThreadPool()
-
buildHelixManagerProperty
public org.apache.helix.HelixManagerProperty buildHelixManagerProperty(VeniceServerConfig config)
-
startInner
public boolean startInner()
- Specified by:
startInner
in classAbstractVeniceService
- 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
toAbstractVeniceService.ServiceState.STARTED
upon completion of the async work).
-
stopInner
public void stopInner() throws java.io.IOException
- Specified by:
stopInner
in classAbstractVeniceService
- Throws:
java.io.IOException
-
replaceAndAddTestIngestionNotifier
public void replaceAndAddTestIngestionNotifier(VeniceNotifier notifier)
-
getInstance
public Instance getInstance()
-
getVeniceOfflinePushMonitorAccessor
public VeniceOfflinePushMonitorAccessor getVeniceOfflinePushMonitorAccessor()
-
getStatusStoreWriter
public PushStatusStoreWriter getStatusStoreWriter()
-
getHelixReadOnlyStoreRepository
public ReadOnlyStoreRepository getHelixReadOnlyStoreRepository()
-
handleMessage
public void handleMessage(KillOfflinePushMessage message)
- Specified by:
handleMessage
in interfaceStatusMessageHandler<KillOfflinePushMessage>
-
getKafkaStoreIngestionService
public KafkaStoreIngestionService getKafkaStoreIngestionService()
-
-