Package org.nuxeo.ecm.core.convert.cache
Class ConversionCacheGCManager
- java.lang.Object
-
- org.nuxeo.ecm.core.convert.cache.ConversionCacheGCManager
-
public class ConversionCacheGCManager extends Object
Manages GC processing to clean up disk cache.- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_DISK_SPACE_USAGE_KBstatic StringMAX_DISK_SPACE_USAGE_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddoGC(long deltaInKB)static booleangcIfNeeded()static longgetCacheSizeInKB()static intgetGCCalls()static intgetGCRuns()protected static intgetMaxDiskSpaceUsageKB()
-
-
-
Field Detail
-
MAX_DISK_SPACE_USAGE_KEY
public static final String MAX_DISK_SPACE_USAGE_KEY
- See Also:
- Constant Field Values
-
MAX_DISK_SPACE_USAGE_KB
public static final long MAX_DISK_SPACE_USAGE_KB
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxDiskSpaceUsageKB
protected static int getMaxDiskSpaceUsageKB()
-
getGCRuns
public static int getGCRuns()
-
getGCCalls
public static int getGCCalls()
-
getCacheSizeInKB
public static long getCacheSizeInKB()
-
gcIfNeeded
public static boolean gcIfNeeded()
-
doGC
public static void doGC(long deltaInKB)
-
-