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 long
MAX_DISK_SPACE_USAGE_KB
static String
MAX_DISK_SPACE_USAGE_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
doGC(long deltaInKB)
static boolean
gcIfNeeded()
static long
getCacheSizeInKB()
static int
getGCCalls()
static int
getGCRuns()
protected static int
getMaxDiskSpaceUsageKB()
-
-
-
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)
-
-