|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConfigurationCache
This interface define methods to manage cache configuration of server.
| Method Summary | |
|---|---|
void |
appendImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
append an image to cache, |
long |
getAnImageSize(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
get an image size in memory. |
java.util.Vector |
getCachedCatalogs()
Return the filenames of catelog need to cache. |
java.util.Vector |
getCachedImages()
Return the filenames of image need to cache. |
java.util.Vector |
getCachedReports()
Return the filenames of report need to cache. |
java.util.Vector |
getCachedReportsWithStyles()
Return the filenames and styles of report need to cache. |
boolean |
getDisplayImageDetail()
Return whether display cached images detail. |
boolean |
getEnableCacheCatelog()
Return if cache catelog. |
boolean |
getEnableCacheImage()
Return if cache image. |
boolean |
getEnableCacheReport()
Return if cache report. |
int |
getEngineSortBufferSize()
get the size of engine sort buffer from configuration properties |
java.lang.String |
getImageBelongedCatalog(java.lang.String fullImagePath)
|
int |
getMaxCacheCatalogSize()
Return the max number of catelogs to be cached. |
int |
getMaxCacheImageSize()
Return the max number of images to be cached. |
int |
getMaxCacheReportSize()
Return max number of reports to be cached. |
int |
getSecurityGroupCacheSize()
Get the security group cache's size |
int |
getSecurityProectionCacheSize()
Get the security protection cache's size |
int |
getSecurityRoleCacheSize()
Get the security role cache's size |
int |
getSecurityUserCacheSize()
Get the security user cache's size |
long |
getUsedImageCacheSize()
get used image cache size. |
boolean |
isCacheAllImages()
is cache all images |
boolean |
isLockedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
is image locked |
void |
loadProperties()
set the properties of server |
boolean |
lockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
lock a cached image. |
void |
removeAllImages()
remove all image |
void |
removeImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
remove an image |
void |
saveProperties()
Save the modifid setting to config file (server.properties). |
void |
setCacheAllImages(boolean isCacheAllImages)
set is cache all Images |
boolean |
setCachedCatalogs(java.lang.String user,
java.util.Vector cachedCatalogs)
Set the filenames of catelog need to cache.if set success return true; |
boolean |
setCachedCatalogs(java.util.Vector cachedCatalogs)
Set the filenames of catelog need to cache.if set success return true; |
boolean |
setCachedReports(java.util.Vector cachedReports)
Set the filenames of report need to cache.if set success return true; |
boolean |
setCachedReportsWithStyles(java.lang.String user,
java.util.Vector cachedReportsWithStyles)
Set the filenames and styles of report need to cache.if set success return true; |
boolean |
setCachedReportsWithStyles(java.util.Vector cachedReportsWithStyles)
Set the filenames and styles of report need to cache.if set success return true; |
void |
setDisplayImageDetail(boolean isDisplay)
Set whether display cached images detail. |
void |
setEnableCacheCatelog(boolean isEnableCacheCatelog)
Set if cache catelog. |
void |
setEnableCacheImage(boolean isEnableCacheImage)
Set if cache image. |
void |
setEnableCacheReport(boolean isEnableCacheReport)
Set if cache report. |
void |
setEngineSortBufferSize(int size)
set the size of engine sort buffer. |
void |
setMaxCacheCatalogSize(int maxCacheCatalog)
Set the max number of catelogs to be cached. |
void |
setMaxCacheImageSize(int maxCacheImage)
Set the max number of images to be cached. |
void |
setMaxCacheReportSize(int maxCacheReport)
Set max number of reports to be cached. |
void |
setSecurityGroupCacheSize(int size)
Set the security group cache's size If set cache's size to zero or negative, it means turn off the security group cache |
void |
setSecurityProtectionCacheSize(int size)
Set the security protection cache's size If set cache's size to zero or negative, it means turn off the security protection cache |
void |
setSecurityRoleCacheSize(int size)
Set the security role cache's size If set cache's size to zero or negative, it means turn off the security role cache |
void |
setSecurityUserCacheSize(int size)
Set the security user cache's size If set cache's size to zero or negative, it means turn off the security user cache |
void |
unloadCatalogs(java.lang.String user,
java.util.Vector catalogNames)
Unload the filenames of catelog form cache. |
void |
unloadCatalogs(java.util.Vector catalogNames)
Unload the filenames of catelog form cache. |
void |
unloadReports(java.util.Vector reportNames)
Unload the filenames of report need to cache. |
void |
unloadReportsWithStyles(java.lang.String user,
java.util.Vector reportNamesWithStyles)
Unload the filenames and styles of report need to cache. |
void |
unloadReportsWithStyles(java.util.Vector reportNamesWithStyles)
Unload the filenames and styles of report need to cache. |
boolean |
unlockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
unlock a cached image. |
| Method Detail |
|---|
void setEnableCacheCatelog(boolean isEnableCacheCatelog)
isEnableCacheCatelog - if cache catelog.boolean getEnableCacheCatelog()
void setMaxCacheCatalogSize(int maxCacheCatalog)
maxCacheCatalog - the max number of catelogs to be cached.int getMaxCacheCatalogSize()
void setEnableCacheImage(boolean isEnableCacheImage)
isEnableCacheImage - if cache image.void setDisplayImageDetail(boolean isDisplay)
isDisplay - whether display cached images detail.boolean getEnableCacheImage()
boolean getDisplayImageDetail()
void setMaxCacheImageSize(int maxCacheImage)
maxCacheImage - the max number of images to be cached.int getMaxCacheImageSize()
boolean setCachedCatalogs(java.util.Vector cachedCatalogs)
cachedCatalogs - the the filenames of catelog need to cache.
boolean setCachedCatalogs(java.lang.String user,
java.util.Vector cachedCatalogs)
cachedCatalogs - the the filenames of catelog need to cache.java.util.Vector getCachedImages()
java.rmi.RemoteException - will be thrown if error occurs.
void appendImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : catalog file's full path nameimgFileName - : the filename of image to be appendeduser - : the user ID.
void removeImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : catalog file's full path nameimgFile - : file name of image to be removeduser - : the user ID.void removeAllImages()
boolean lockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : full path name of catalogimgFileName - : file name of imageuser - : the user ID.
boolean unlockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : full path name of catalogimgFileName - : file name of imageuser - : the user ID.
java.lang.String getImageBelongedCatalog(java.lang.String fullImagePath)
boolean isLockedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : full path name of catalog fileimgFileName - : the image file name.user - : the user ID.
boolean isCacheAllImages()
void setCacheAllImages(boolean isCacheAllImages)
long getUsedImageCacheSize()
long getAnImageSize(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
catFile - : full path name of catalog file, such as /SampleReports/Sample.catimgFileName - : the image file name.user - : the user ID.
java.util.Vector getCachedCatalogs()
void setEnableCacheReport(boolean isEnableCacheReport)
isEnableCacheReport - if cache report.boolean getEnableCacheReport()
void setMaxCacheReportSize(int maxCacheReport)
maxCacheReport - max number of reports to be cached.int getMaxCacheReportSize()
boolean setCachedReports(java.util.Vector cachedReports)
cachedReports - the filenames of report need to cache.boolean setCachedReportsWithStyles(java.util.Vector cachedReportsWithStyles)
cachedReportsWithStyles - the filenames and styles of report need to cache.
boolean setCachedReportsWithStyles(java.lang.String user,
java.util.Vector cachedReportsWithStyles)
cachedReportsWithStyles - the filenames and styles of report need to cache.java.util.Vector getCachedReports()
java.util.Vector getCachedReportsWithStyles()
void unloadCatalogs(java.util.Vector catalogNames)
catalogNames - the Vector which is filenames of catelog need to unload.
void unloadCatalogs(java.lang.String user,
java.util.Vector catalogNames)
catalogNames - the Vector which is filenames of catelog need to unload.void unloadReports(java.util.Vector reportNames)
reportNames - the Vector which is filenames of report need to unload.void unloadReportsWithStyles(java.util.Vector reportNamesWithStyles)
reportNamesWithStyles - the Vector which is filenames and styles of report need to
unload.
void unloadReportsWithStyles(java.lang.String user,
java.util.Vector reportNamesWithStyles)
reportNamesWithStyles - the Vector which is filenames and styles of report need to
unload.void setSecurityUserCacheSize(int size)
size - int getSecurityUserCacheSize()
void setSecurityRoleCacheSize(int size)
size - int getSecurityRoleCacheSize()
void setSecurityGroupCacheSize(int size)
size - int getSecurityGroupCacheSize()
void setSecurityProtectionCacheSize(int size)
size - int getSecurityProectionCacheSize()
void loadProperties()
void saveProperties()
int getEngineSortBufferSize()
void setEngineSortBufferSize(int size)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||