Package com.linkedin.venice.listener
Class ListenerService
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.listener.ListenerService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Service that listens on configured port to accept incoming GET requests
-
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
ConstructorDescriptionListenerService
(StorageEngineRepository storageEngineRepository, ReadOnlyStoreRepository storeMetadataRepository, ReadOnlySchemaRepository schemaRepository, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewRepository, IngestionMetadataRetriever ingestionMetadataRetriever, ReadMetadataRetriever readMetadataRetriever, VeniceServerConfig serverConfig, io.tehuti.metrics.MetricsRepository metricsRepository, Optional<SSLFactory> sslFactory, Optional<StaticAccessController> routerAccessController, Optional<DynamicAccessController> storeAccessController, DiskHealthCheckService diskHealthService, StorageEngineBackedCompressorFactory compressorFactory, Optional<ResourceReadUsageTracker> resourceReadUsageTracker) -
Method Summary
Modifier and TypeMethodDescriptionprotected StorageReadRequestHandler
createRequestHandler
(ThreadPoolExecutor executor, ThreadPoolExecutor computeExecutor, StorageEngineRepository storageEngineRepository, ReadOnlyStoreRepository metadataRepository, ReadOnlySchemaRepository schemaRepository, IngestionMetadataRetriever ingestionMetadataRetriever, ReadMetadataRetriever readMetadataRetriever, DiskHealthCheckService diskHealthService, StorageEngineBackedCompressorFactory compressorFactory, Optional<ResourceReadUsageTracker> resourceReadUsageTracker) protected ThreadPoolExecutor
createThreadPool
(int threadCount, String threadNamePrefix, int capacity) boolean
void
-
Constructor Details
-
ListenerService
public ListenerService(StorageEngineRepository storageEngineRepository, ReadOnlyStoreRepository storeMetadataRepository, ReadOnlySchemaRepository schemaRepository, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewRepository, IngestionMetadataRetriever ingestionMetadataRetriever, ReadMetadataRetriever readMetadataRetriever, VeniceServerConfig serverConfig, io.tehuti.metrics.MetricsRepository metricsRepository, Optional<SSLFactory> sslFactory, Optional<StaticAccessController> routerAccessController, Optional<DynamicAccessController> storeAccessController, DiskHealthCheckService diskHealthService, StorageEngineBackedCompressorFactory compressorFactory, Optional<ResourceReadUsageTracker> resourceReadUsageTracker)
-
-
Method Details
-
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). - Throws:
Exception
-
stopInner
- Specified by:
stopInner
in classAbstractVeniceService
- Throws:
Exception
-
createThreadPool
protected ThreadPoolExecutor createThreadPool(int threadCount, String threadNamePrefix, int capacity) -
createRequestHandler
protected StorageReadRequestHandler createRequestHandler(ThreadPoolExecutor executor, ThreadPoolExecutor computeExecutor, StorageEngineRepository storageEngineRepository, ReadOnlyStoreRepository metadataRepository, ReadOnlySchemaRepository schemaRepository, IngestionMetadataRetriever ingestionMetadataRetriever, ReadMetadataRetriever readMetadataRetriever, DiskHealthCheckService diskHealthService, StorageEngineBackedCompressorFactory compressorFactory, Optional<ResourceReadUsageTracker> resourceReadUsageTracker)
-