|
Oracle Application Server 10g Java Object Cache API Reference 10g(9.0.4) B10388-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ias.cache.Configurator
Constructor Summary | |
Configurator(java.lang.String configFile) Construct a Configurator object based on the contents in a XML file. | |
Configurator(java.lang.String configFile, boolean loadDeclare) |
Method Summary | |
void |
defineDeclarable() Define the declarative Cache |
void |
defineDeclarable(boolean ignoreError) Define the declarative Cache |
oracle.ias.cache.CacheAttributes |
getCacheAttributes() Return the CacheAttributes defined in the configuration file |
static void |
main(java.lang.String[] args) For testing purpose. |
java.lang.String |
toString() Return the description of the cache configuration and any declarable cached objects which are defined in the config file. |
void |
updateFile(oracle.ias.cache.CacheAttributes cattr) Update XML document and overwrite the existing config file based on the data in the specified CacheAttributes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Configurator(java.lang.String configFile) throws CacheConfigParsingException, InvalidArgumentException, CacheException
After constructing this object, the user can retrieve the CacheAttritubes object and invoke the defineDeclarable method to define the declarative cache. During Cache service initialization, it automatically creates a Configurator object and define the Cache service if a XML config file is supplied to Cache.open(String filename).
configFile
- is the XML configuration fileCacheConfigParsingException
- if there is any error during parsing the fileInvalidArgumentException
CacheException
public Configurator(java.lang.String configFile, boolean loadDeclare) throws CacheConfigParsingException, InvalidArgumentException, CacheException
Method Detail |
public oracle.ias.cache.CacheAttributes getCacheAttributes()
public void defineDeclarable(boolean ignoreError) throws CacheException
ignoreError
- is true for ignoring any error on duplicated declarationCacheException
- if any error occurspublic void defineDeclarable() throws CacheException
CacheException
- if any error occurspublic void updateFile(oracle.ias.cache.CacheAttributes cattr) throws CacheConfigParsingException
This method only updating coordinator address list at the current moment.
cattr
-CacheConfigParsingException
- if any error occurspublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- must contain the full path to the configuration file
|
Oracle Application Server 10g Java Object Cache API Reference 10g(9.0.4) B10388-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |