public class DistributedStreamService extends AbstractStreamService
TwillRunnable. It is responsible for sending StreamWriterHeartbeats
at a fixed rate, describing the sizes of the stream files on which this service writes data, for each stream.| Constructor and Description |
|---|
DistributedStreamService(CConfiguration cConf,
StreamAdmin streamAdmin,
StreamCoordinatorClient streamCoordinatorClient,
StreamFileJanitorService janitorService,
ZKClient zkClient,
DiscoveryServiceClient discoveryServiceClient,
StreamMetaStore streamMetaStore,
com.google.common.base.Supplier<Discoverable> discoverableSupplier,
StreamWriterSizeCollector streamWriterSizeCollector,
HeartbeatPublisher heartbeatPublisher,
NotificationFeedManager feedManager,
NotificationService notificationService,
MetricStore metricStore) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown()
Children classes should implement this method to add logic to the shutdown of this
Service. |
protected void |
initialize()
Children classes should implement this method to add logic to the start of this
Service. |
protected void |
runOneIteration() |
executor, getStreamCoordinatorClient, getStreamEventsSize, scheduler, shutDown, startUpaddListener, isRunning, start, startAndWait, state, stop, stopAndWait, toString@Inject public DistributedStreamService(CConfiguration cConf, StreamAdmin streamAdmin, StreamCoordinatorClient streamCoordinatorClient, StreamFileJanitorService janitorService, ZKClient zkClient, DiscoveryServiceClient discoveryServiceClient, StreamMetaStore streamMetaStore, com.google.common.base.Supplier<Discoverable> discoverableSupplier, StreamWriterSizeCollector streamWriterSizeCollector, HeartbeatPublisher heartbeatPublisher, NotificationFeedManager feedManager, NotificationService notificationService, MetricStore metricStore)
protected void initialize()
throws Exception
AbstractStreamServiceService.initialize in class AbstractStreamServiceException - in case of any error while initializingprotected void doShutdown()
throws Exception
AbstractStreamServiceService.doShutdown in class AbstractStreamServiceException - in case of any error while shutting downCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.