Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.pictures.tiles.service
Class PictureTilingCacheGCManager

java.lang.Object
  extended by org.nuxeo.ecm.platform.pictures.tiles.service.PictureTilingCacheGCManager

public class PictureTilingCacheGCManager
extends Object

Manage GC processing to clean up disk cache

Author:
tiry

Field Summary
static long MAX_DISK_SPACE_USAGE_KB
           
static String MAX_DISK_SPACE_USAGE_KEY
           
 
Constructor Summary
PictureTilingCacheGCManager()
           
 
Method Summary
static void doGC(long deltaInKB)
           
static boolean gcIfNeeded()
           
static long getCacheSizeInBytes()
           
static long getCacheSizeInKBs()
           
static int getGCCalls()
           
static int getGCRuns()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

PictureTilingCacheGCManager

public PictureTilingCacheGCManager()
Method Detail

getGCRuns

public static int getGCRuns()

getGCCalls

public static int getGCCalls()

getCacheSizeInKBs

public static long getCacheSizeInKBs()

getCacheSizeInBytes

public static long getCacheSizeInBytes()

gcIfNeeded

public static boolean gcIfNeeded()

doGC

public static void doGC(long deltaInKB)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.