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>
,Closeable
,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
ConstructorDescriptionHelixParticipationService
(StoreIngestionService storeIngestionService, StorageService storageService, StorageMetadataService storageMetadataService, VeniceConfigLoader veniceConfigLoader, ReadOnlyStoreRepository helixReadOnlyStoreRepository, ReadOnlySchemaRepository helixReadOnlySchemaRepository, io.tehuti.metrics.MetricsRepository metricsRepository, String zkAddress, String clusterName, int port, String hostname, CompletableFuture<SafeHelixManager> managerFuture, HeartbeatMonitoringService heartbeatMonitoringService, BlobTransferManager blobTransferManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.helix.HelixManagerProperty
void
handleMessage
(KillOfflinePushMessage message) void
boolean
void
-
Constructor Details
-
HelixParticipationService
public HelixParticipationService(StoreIngestionService storeIngestionService, StorageService storageService, StorageMetadataService storageMetadataService, VeniceConfigLoader veniceConfigLoader, ReadOnlyStoreRepository helixReadOnlyStoreRepository, ReadOnlySchemaRepository helixReadOnlySchemaRepository, io.tehuti.metrics.MetricsRepository metricsRepository, String zkAddress, String clusterName, int port, String hostname, CompletableFuture<SafeHelixManager> managerFuture, HeartbeatMonitoringService heartbeatMonitoringService, BlobTransferManager blobTransferManager)
-
-
Method Details
-
getLeaderFollowerHelixStateTransitionThreadPool
-
buildHelixManagerProperty
-
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
- Specified by:
stopInner
in classAbstractVeniceService
- Throws:
IOException
-
replaceAndAddTestIngestionNotifier
-
getInstance
-
getVeniceOfflinePushMonitorAccessor
-
getStatusStoreWriter
-
getHelixReadOnlyStoreRepository
-
handleMessage
- Specified by:
handleMessage
in interfaceStatusMessageHandler<KillOfflinePushMessage>
-
getKafkaStoreIngestionService
-