Package com.linkedin.davinci.utils
Class StoragePartitionDiskUsage
- java.lang.Object
-
- com.linkedin.davinci.utils.StoragePartitionDiskUsage
-
public class StoragePartitionDiskUsage extends java.lang.Object
This class maintains in-memory partition usage. Triggered by size and/or time by #getUsage(), it will sync up with real disk usage.
-
-
Constructor Summary
Constructors Constructor Description StoragePartitionDiskUsage(int partition, AbstractStorageEngine storageEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long recordSize)
Adds a usage size to the partitionlong
getUsage()
void
syncWithDB()
sync with real partition DB usage and reset in memory partition usage to be zero
-
-
-
Constructor Detail
-
StoragePartitionDiskUsage
public StoragePartitionDiskUsage(int partition, AbstractStorageEngine storageEngine)
-
-