public class FileCache extends java.lang.Object implements ManagedDBAttribute
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
FileCache(de.innovationgate.webgate.api.WGDatabase db,
WGACore core) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
long |
getActualSize() |
byte[] |
getFile(PublishingFile file,
long cutoffTime) |
long |
getMaxSize()
Returns the maxSize.
|
long |
getThreshold()
Returns the threshold.
|
int |
getUtilisation() |
boolean |
isTemporary() |
void |
putFile(PublishingFile file,
byte[] data,
long containerTime) |
public FileCache(de.innovationgate.webgate.api.WGDatabase db, WGACore core) throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void putFile(PublishingFile file, byte[] data, long containerTime)
public void clear()
public byte[] getFile(PublishingFile file, long cutoffTime)
public boolean isTemporary()
WGDatabaseEventListener.isTemporary()
public long getMaxSize()
public long getThreshold()
public int getUtilisation() throws de.innovationgate.utils.cache.CacheException
de.innovationgate.utils.cache.CacheException
public void close()
close
in interface ManagedDBAttribute
public long getActualSize()