Package com.linkedin.venice.cleaner
Class LeakedResourceCleaner
java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.venice.cleaner.LeakedResourceCleaner
- All Implemented Interfaces:
Closeable
,AutoCloseable
LeakedResourceCleaner is a background thread which wakes up regularly
to release leaked resources from local disk.
-
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
ConstructorDescriptionLeakedResourceCleaner
(StorageEngineRepository storageEngineRepository, long pollIntervalMs, ReadOnlyStoreRepository storeRepository, StoreIngestionService ingestionService, StorageService storageService, io.tehuti.metrics.MetricsRepository metricsRepository) -
Method Summary
-
Constructor Details
-
LeakedResourceCleaner
public LeakedResourceCleaner(StorageEngineRepository storageEngineRepository, long pollIntervalMs, ReadOnlyStoreRepository storeRepository, StoreIngestionService ingestionService, StorageService storageService, io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Details
-
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()- Specified by:
stopInner
in classAbstractVeniceService
-