public class RAMDiskFileCache
extends org.adroitlogic.ultraesb.core.AbstractFileCache
ConfigurationElement.State
availableForUse, cachedPath, createdFilesStream, fileCache, fileCacheOverflowStream, fileCacheStateEvent, fileCacheUsageStream, filesInUseStream, globalUsageStream, memoryMapEnabled, memoryMapSize, nextFileId, overflowFilesInUseStream, peakUsage, size, stopThreshold, totalFilesCreated, warnThreshold
Constructor and Description |
---|
RAMDiskFileCache(java.lang.String cachedPath,
int size) |
RAMDiskFileCache(java.lang.String cachedPath,
int size,
int warnThreshold,
int stopThreshold) |
RAMDiskFileCache(java.lang.String cachedPath,
int size,
int warnThreshold,
int stopThreshold,
int maxFilesOnRamDisk,
java.lang.String ramDiskOverflowPath) |
Modifier and Type | Method and Description |
---|---|
protected MessageFile |
createTempFile(java.lang.String prefix,
java.lang.String ext,
java.io.File cachedPath) |
void |
returnFile(MessageFile file)
Return a temporary file back to pooled cache
|
org.adroitlogic.ultraesb.jmx.view.FileCacheView |
toDetailedView() |
getDetails, getFile, registerReadyCallback, setStopThreshold, setWarnThreshold, start, stop
equals, getDeploymentUnit, getDerivedName, getId, getState, getStreamCount, getTimerStreamMax, getTimerStreamMean, getTimerStreamMin, getTimerStreamPer, hashCode, init, isDebugOn, isStarted, maintenanceShutdown, markAsOutdated, pause, resetCounter, resetTimer, resolveMetricsStreams, resume, setBeanName, setConfig, setDebugOn, setDerivedName, setId, setMetricsEngine, setState, throwIllegalStateException, undeploy
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDerivedName, getId, getState, isDebugOn, isStarted, maintenanceShutdown, pause, resume, retire, setConfig
public RAMDiskFileCache(java.lang.String cachedPath, int size)
public RAMDiskFileCache(java.lang.String cachedPath, int size, int warnThreshold, int stopThreshold)
public RAMDiskFileCache(java.lang.String cachedPath, int size, int warnThreshold, int stopThreshold, int maxFilesOnRamDisk, java.lang.String ramDiskOverflowPath)
protected MessageFile createTempFile(java.lang.String prefix, java.lang.String ext, java.io.File cachedPath)
createTempFile
in class org.adroitlogic.ultraesb.core.AbstractFileCache
public void returnFile(MessageFile file)
FileCache
returnFile
in interface FileCache
returnFile
in class org.adroitlogic.ultraesb.core.AbstractFileCache
file
- file to re-usepublic org.adroitlogic.ultraesb.jmx.view.FileCacheView toDetailedView()
toDetailedView
in class org.adroitlogic.ultraesb.core.AbstractFileCache