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.HelixManagerPropertybuildHelixManagerProperty(VeniceServerConfig config)ReadOnlyStoreRepositorygetHelixReadOnlyStoreRepository()InstancegetInstance()java.util.concurrent.ThreadPoolExecutorgetLeaderFollowerHelixStateTransitionThreadPool()PushStatusStoreWritergetStatusStoreWriter()VeniceOfflinePushMonitorAccessorgetVeniceOfflinePushMonitorAccessor()voidhandleMessage(KillOfflinePushMessage message)voidreplaceAndAddTestIngestionNotifier(VeniceNotifier notifier)booleanstartInner()voidstopInner()
-
-
-
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:
startInnerin 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.serviceStatetoAbstractVeniceService.ServiceState.STARTEDupon completion of the async work).
-
stopInner
public void stopInner() throws java.io.IOException- Specified by:
stopInnerin 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:
handleMessagein interfaceStatusMessageHandler<KillOfflinePushMessage>
-
-