|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteConfigurationCache
This interface define methods to manage cache configuration of server remotely.
| 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 truethrows RemoteException; |
boolean |
setCachedCatalogs(java.util.Vector cachedCatalogs)
Set the filenames of catelog need to cache.if set success return truethrows RemoteException; |
boolean |
setCachedReports(java.util.Vector cachedReports)
Set the filenames of report need to cache.if set success return truethrows RemoteException; |
boolean |
setCachedReportsWithStyles(java.lang.String user,
java.util.Vector cachedReportsWithStyles)
Set the filenames and styles of report need to cache.if set success return truethrows RemoteException; |
boolean |
setCachedReportsWithStyles(java.util.Vector cachedReportsWithStyles)
Set the filenames and styles of report need to cache.if set success return truethrows RemoteException; |
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)
throws java.rmi.RemoteException
isEnableCacheCatelog - if cache catelog.
java.rmi.RemoteException - will be thrown if error occurs.
boolean getEnableCacheCatelog()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setMaxCacheCatalogSize(int maxCacheCatalog)
throws java.rmi.RemoteException
maxCacheCatalog - the max number of catelogs to be cached.
java.rmi.RemoteException - will be thrown if error occurs.
int getMaxCacheCatalogSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnableCacheImage(boolean isEnableCacheImage)
throws java.rmi.RemoteException
isEnableCacheImage - if cache image.
java.rmi.RemoteException
void setDisplayImageDetail(boolean isDisplay)
throws java.rmi.RemoteException
isDisplay - whether display cached images detail.
java.rmi.RemoteException
boolean getEnableCacheImage()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean getDisplayImageDetail()
throws java.rmi.RemoteException
java.rmi.RemoteException
void setMaxCacheImageSize(int maxCacheImage)
throws java.rmi.RemoteException
maxCacheImage - the max number of images to be cached.
java.rmi.RemoteException
int getMaxCacheImageSize()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean setCachedCatalogs(java.util.Vector cachedCatalogs)
throws java.rmi.RemoteException
cachedCatalogs - the the filenames of catelog need to cache.
java.rmi.RemoteException - will be thrown if error occurs.
java.util.Vector getCachedImages()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void appendImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : catalog file's full path nameimgFileName - : the filename of image to be appendeduser - : the user ID.
java.rmi.RemoteException
void removeImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : catalog file's full path nameimgFile - : file name of image to be removeduser - : the user ID.
java.rmi.RemoteException
void removeAllImages()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean lockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : full path name of catalogimgFileName - : file name of imageuser - : the user ID.
java.rmi.RemoteException
boolean unlockCachedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : full path name of catalogimgFileName - : file name of imageuser - : the user ID.
java.rmi.RemoteException
boolean isLockedImage(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : full path name of catalog fileimgFileName - : the image file name.user - : the user ID.
java.rmi.RemoteException
java.lang.String getImageBelongedCatalog(java.lang.String fullImagePath)
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isCacheAllImages()
throws java.rmi.RemoteException
java.rmi.RemoteException
void setCacheAllImages(boolean isCacheAllImages)
throws java.rmi.RemoteException
java.rmi.RemoteException
long getUsedImageCacheSize()
throws java.rmi.RemoteException
java.rmi.RemoteException
long getAnImageSize(java.lang.String catFile,
java.lang.String imgFile,
java.lang.String user)
throws java.rmi.RemoteException
catFile - : full path name of catalog file, such as /SampleReports/Sample.catimgFileName - : the image file name.user - : the user ID.
java.rmi.RemoteException
boolean setCachedCatalogs(java.lang.String user,
java.util.Vector cachedCatalogs)
throws java.rmi.RemoteException
cachedCatalogs - the the filenames of catelog need to cache.
java.rmi.RemoteException - will be thrown if error occurs.
java.util.Vector getCachedCatalogs()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setEnableCacheReport(boolean isEnableCacheReport)
throws java.rmi.RemoteException
isEnableCacheReport - if cache report.
java.rmi.RemoteException - will be thrown if error occurs.
boolean getEnableCacheReport()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setMaxCacheReportSize(int maxCacheReport)
throws java.rmi.RemoteException
maxCacheReport - max number of reports to be cached.
java.rmi.RemoteException - will be thrown if error occurs.
int getMaxCacheReportSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
boolean setCachedReports(java.util.Vector cachedReports)
throws java.rmi.RemoteException
cachedReports - the filenames of report need to cache.
java.rmi.RemoteException - will be thrown if error occurs.
boolean setCachedReportsWithStyles(java.util.Vector cachedReportsWithStyles)
throws java.rmi.RemoteException
cachedReportsWithStyles - the filenames and styles of report need to cache.
java.rmi.RemoteException - will be thrown if error occurs.
boolean setCachedReportsWithStyles(java.lang.String user,
java.util.Vector cachedReportsWithStyles)
throws java.rmi.RemoteException
cachedReportsWithStyles - the filenames and styles of report need to cache.
java.rmi.RemoteException - will be thrown if error occurs.
java.util.Vector getCachedReports()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
java.util.Vector getCachedReportsWithStyles()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void unloadCatalogs(java.util.Vector catalogNames)
throws java.rmi.RemoteException
catalogNames - the Vector which is filenames of catelog need to unload.
java.rmi.RemoteException - will be thrown if error occurs.
void unloadCatalogs(java.lang.String user,
java.util.Vector catalogNames)
throws java.rmi.RemoteException
catalogNames - the Vector which is filenames of catelog need to unload.
java.rmi.RemoteException - will be thrown if error occurs.
void unloadReports(java.util.Vector reportNames)
throws java.rmi.RemoteException
reportNames - the Vector which is filenames of report need to unload.
java.rmi.RemoteException - will be thrown if error occurs.
void unloadReportsWithStyles(java.util.Vector reportNamesWithStyles)
throws java.rmi.RemoteException
reportNamesWithStyles - the Vector which is filenames and styles of report need to
unload.
java.rmi.RemoteException - will be thrown if error occurs.
void unloadReportsWithStyles(java.lang.String user,
java.util.Vector reportNamesWithStyles)
throws java.rmi.RemoteException
reportNamesWithStyles - the Vector which is filenames and styles of report need to
unload.
java.rmi.RemoteException - will be thrown if error occurs.
void setSecurityUserCacheSize(int size)
throws java.rmi.RemoteException
size -
java.rmi.RemoteException - will be thrown if error occurs.
int getSecurityUserCacheSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setSecurityRoleCacheSize(int size)
throws java.rmi.RemoteException
size -
java.rmi.RemoteException - will be thrown if error occurs.
int getSecurityRoleCacheSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setSecurityGroupCacheSize(int size)
throws java.rmi.RemoteException
size -
java.rmi.RemoteException - will be thrown if error occurs.
int getSecurityGroupCacheSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void setSecurityProtectionCacheSize(int size)
throws java.rmi.RemoteException
size -
java.rmi.RemoteException - will be thrown if error occurs.
int getSecurityProectionCacheSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void loadProperties()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
void saveProperties()
throws java.rmi.RemoteException
java.rmi.RemoteException - will be thrown if error occurs.
int getEngineSortBufferSize()
throws java.rmi.RemoteException
java.rmi.RemoteException
void setEngineSortBufferSize(int size)
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||