Package com.linkedin.venice.cleaner
Class LeakedResourceCleaner
- java.lang.Object
-
- com.linkedin.venice.service.AbstractVeniceService
-
- com.linkedin.venice.cleaner.LeakedResourceCleaner
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class LeakedResourceCleaner extends AbstractVeniceService
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
Constructors Constructor Description LeakedResourceCleaner(StorageEngineRepository storageEngineRepository, long pollIntervalMs, ReadOnlyStoreRepository storeRepository, StoreIngestionService ingestionService, StorageService storageService, io.tehuti.metrics.MetricsRepository metricsRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
startInner()
void
stopInner()
-
-
-
Constructor Detail
-
LeakedResourceCleaner
public LeakedResourceCleaner(StorageEngineRepository storageEngineRepository, long pollIntervalMs, ReadOnlyStoreRepository storeRepository, StoreIngestionService ingestionService, StorageService storageService, io.tehuti.metrics.MetricsRepository metricsRepository)
-
-
Method Detail
-
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
-
-