jet.server.api.admin.cfg
Interface ConfigurationCache


public interface ConfigurationCache

This interface define methods to manage cache configuration of server.


Method Summary
 java.util.Vector getCachedCatalogs()
          Return the filenames of catelog 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 getEnableCacheCatelog()
          Return if cache catelog.
 boolean getEnableCacheReport()
          Return if cache report.
 int getMaxCacheCatalogSize()
          Return the max number of catelogs to be cached.
 int getMaxCacheReportSize()
          Return max number of reports to be cached.
 void loadProperties()
          set the properties of server
 void saveProperties()
          Save the modifid setting to config file (server.properties).
 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.util.Vector cachedReportsWithStyles)
          Set the filenames and styles of report need to cache.if set success return true;
 void setEnableCacheCatelog(boolean isEnableCacheCatelog)
          Set if cache catelog.
 void setEnableCacheReport(boolean isEnableCacheReport)
          Set if cache report.
 void setMaxCacheCatalogSize(int maxCacheCatalog)
          Set the max number of catelogs to be cached.
 void setMaxCacheReportSize(int maxCacheReport)
          Set max number of reports to be cached.
 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.util.Vector reportNamesWithStyles)
          Unload the filenames and styles of report need to cache.
 

Method Detail

setEnableCacheCatelog

public void setEnableCacheCatelog(boolean isEnableCacheCatelog)
Set if cache catelog.

Parameters:
isEnableCacheCatelog - if cache catelog.

getEnableCacheCatelog

public boolean getEnableCacheCatelog()
Return if cache catelog.

Returns:
if cache catelog.

setMaxCacheCatalogSize

public void setMaxCacheCatalogSize(int maxCacheCatalog)
Set the max number of catelogs to be cached.

Parameters:
maxCacheCatalog - the max number of catelogs to be cached.

getMaxCacheCatalogSize

public int getMaxCacheCatalogSize()
Return the max number of catelogs to be cached.

Returns:
the max number of catelogs to be cached.

setCachedCatalogs

public boolean setCachedCatalogs(java.util.Vector cachedCatalogs)
Set the filenames of catelog need to cache.if set success return true;

Parameters:
cachedCatalogs - the the filenames of catelog need to cache.

getCachedCatalogs

public java.util.Vector getCachedCatalogs()
Return the filenames of catelog need to cache.

Returns:
the filenames of catelog need to cache.

setEnableCacheReport

public void setEnableCacheReport(boolean isEnableCacheReport)
Set if cache report.

Parameters:
isEnableCacheReport - if cache report.

getEnableCacheReport

public boolean getEnableCacheReport()
Return if cache report.

Returns:
if cache report.

setMaxCacheReportSize

public void setMaxCacheReportSize(int maxCacheReport)
Set max number of reports to be cached.

Parameters:
maxCacheReport - max number of reports to be cached.

getMaxCacheReportSize

public int getMaxCacheReportSize()
Return max number of reports to be cached.

Returns:
max number of reports to be cached.

setCachedReports

public boolean setCachedReports(java.util.Vector cachedReports)
Set the filenames of report need to cache.if set success return true;

Parameters:
cachedReports - the filenames of report need to cache.

setCachedReportsWithStyles

public boolean setCachedReportsWithStyles(java.util.Vector cachedReportsWithStyles)
Set the filenames and styles of report need to cache.if set success return true;


getCachedReports

public java.util.Vector getCachedReports()
Return the filenames of report need to cache.

Returns:
the filenames of report need to cache.

getCachedReportsWithStyles

public java.util.Vector getCachedReportsWithStyles()
Return the filenames and styles of report need to cache.

Returns:
the filenames and styles of report need to cache.

unloadCatalogs

public void unloadCatalogs(java.util.Vector catalogNames)
Unload the filenames of catelog form cache.

Parameters:
catalogNames - the Vector which is filenames of catelog need to unload.

unloadReports

public void unloadReports(java.util.Vector reportNames)
Unload the filenames of report need to cache.

Parameters:
reportNames - the Vector which is filenames of report need to unload.

unloadReportsWithStyles

public void unloadReportsWithStyles(java.util.Vector reportNamesWithStyles)
Unload the filenames and styles of report need to cache.


loadProperties

public void loadProperties()
set the properties of server

Returns:
set the properties of server.

saveProperties

public void saveProperties()
Save the modifid setting to config file (server.properties).