|
AdroitLogic UltraESB v1.7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.adroitlogic.ultraesb.core.config.AbstractConfigurationElement
org.adroitlogic.ultraesb.core.AbstractFileCache
org.adroitlogic.ultraesb.core.PooledMessageFileCache
public class PooledMessageFileCache
The default FileCache implementation used by the UltraESB. Allows files to be created on disk, and memory mapped
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.adroitlogic.ultraesb.api.ConfigurationElement |
|---|
ConfigurationElement.State |
| Field Summary |
|---|
| Fields inherited from class org.adroitlogic.ultraesb.core.AbstractFileCache |
|---|
availableForUse, cachedPath, fileCache, memoryMapEnabled, memoryMapSize, nextFileId, peakUsage, size, stopThreshold, totalFilesCreated, warnThreshold |
| Fields inherited from class org.adroitlogic.ultraesb.core.config.AbstractConfigurationElement |
|---|
config, ctx, debugOn, derivedName, id, logger, outdated, state |
| Constructor Summary | |
|---|---|
PooledMessageFileCache(int size)
Create the specified number of temporary files in the system temporary directory and hold in cache |
|
PooledMessageFileCache(java.lang.String cachedPath,
int size)
Create the specified number of temporary files and hold in cache |
|
PooledMessageFileCache(java.lang.String cachedPath,
int size,
boolean memoryMapEnabled)
Create the specified number of temporary files and hold in cache |
|
PooledMessageFileCache(java.lang.String cachedPath,
int size,
boolean memoryMapEnabled,
long memoryMapSize,
int warnThreshold,
int stopThreshold)
Create the specified number of temporary files and hold in cache |
|
| Method Summary | |
|---|---|
protected MessageFile |
createTempFile(java.lang.String prefix,
java.lang.String ext,
java.io.File cachedPath)
Create a temporary file with the given prefix and extension, at the given temporary file path |
void |
setMemoryMapEnabled(boolean memoryMapEnabled)
Turn memory mapping of temporary files on/or off |
void |
setMemoryMapSize(long memoryMapSize)
Set the size of the memory mapping for files |
org.adroitlogic.ultraesb.jmx.view.FileCacheView |
toDetailedView()
Return the immutable FileCacheView from JMX. |
| Methods inherited from class org.adroitlogic.ultraesb.core.AbstractFileCache |
|---|
destroy, getDetails, getFile, registerReadyCallback, returnFile, setStopThreshold, setWarnThreshold, start, stop |
| Methods inherited from class org.adroitlogic.ultraesb.core.config.AbstractConfigurationElement |
|---|
equals, getAppCtx, getDerivedName, getId, getState, hashCode, isDebugOn, isStarted, maintenanceShutdown, markAsOutdated, pause, resume, setApplicationContext, setBeanName, setConfig, setDebugOn, setDerivedName, setId, setState, throwIllegalStateException, undeploy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.adroitlogic.ultraesb.api.ConfigurationElement |
|---|
getDerivedName, getId, getState, isDebugOn, isStarted, maintenanceShutdown, pause, resume |
| Methods inherited from interface org.springframework.beans.factory.BeanNameAware |
|---|
setBeanName |
| Constructor Detail |
|---|
public PooledMessageFileCache(int size)
size - the number of files to create initially
public PooledMessageFileCache(java.lang.String cachedPath,
int size)
cachedPath - path to create temporary filessize - the number of files to create initially
public PooledMessageFileCache(java.lang.String cachedPath,
int size,
boolean memoryMapEnabled)
cachedPath - path to create temporary filessize - the number of files to create initiallymemoryMapEnabled - enable memory mapping
public PooledMessageFileCache(java.lang.String cachedPath,
int size,
boolean memoryMapEnabled,
long memoryMapSize,
int warnThreshold,
int stopThreshold)
cachedPath - path to create temporary filessize - the number of files to create initiallymemoryMapEnabled - enable memory mappingmemoryMapSize - size in bytes to map into memory (default 4096)warnThreshold - issue a warning when this number of files have been createdstopThreshold - maximum number of files to create| Method Detail |
|---|
protected MessageFile createTempFile(java.lang.String prefix,
java.lang.String ext,
java.io.File cachedPath)
createTempFile in class org.adroitlogic.ultraesb.core.AbstractFileCacheprefix - prefix for file namesext - extension for file namescachedPath - path to create the temporary files at
public void setMemoryMapSize(long memoryMapSize)
memoryMapSize - the size in bytes to memory map (default is 4K)public void setMemoryMapEnabled(boolean memoryMapEnabled)
memoryMapEnabled - memory mapping on if truepublic org.adroitlogic.ultraesb.jmx.view.FileCacheView toDetailedView()
toDetailedView in class org.adroitlogic.ultraesb.core.AbstractFileCache
|
Copyright (c) 2010-2012 AdroitLogic Private Ltd. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||