Rule Execution Server API

ilog.rules.res.xu.persistence
Class IlrFilePersistence

java.lang.Object
  extended by com.ibm.rules.res.xu.persistence.internal.AbstractXUPersistence
      extended by ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
          extended by ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
              extended by ilog.rules.res.xu.persistence.IlrFilePersistence
All Implemented Interfaces:
ilog.rules.res.xu.persistence.internal.IlrXUPersistence, ilog.rules.res.xu.ruleset.internal.IlrRulesetPathSolver, Serializable

public class IlrFilePersistence
extends ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl

This is the base class for custom persistence. It is based on the file system ruleset repository. You can use this class to modify the way in which ruleset archives are retrieved.

Since:
7.1
See Also:
Serialized Form

Field Summary
static String FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
          This is the name of the property that specifies what directory the file persistence uses.
 
Fields inherited from class ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
repositoryDir, rulesetArchiveExpanded
 
Fields inherited from class ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
dataProvider, managedXOMLazyLoadEnabled
 
Fields inherited from class com.ibm.rules.res.xu.persistence.internal.AbstractXUPersistence
CONCURRENT_PERSISTENCE_ACCESS_PROPERTY_NAME, logger, persistenceProps
 
Constructor Summary
IlrFilePersistence()
           
 
Method Summary
 IlrRESRulesetArchive retrieveRESRulesetArchive(IlrPath canonicalPath)
          Gets a ruleset archive from the ruleset repository.
 void setProperties(Map<String,String> properties)
          Sets the properties of the persistence.
 
Methods inherited from class ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
createDataProvider
 
Methods inherited from class ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
getDataProvider, getManagedXOMClassLoader, retrieveRulesetArchiveProperties, solveCanonicalRulesetPath
 
Methods inherited from class com.ibm.rules.res.xu.persistence.internal.AbstractXUPersistence
destroy, dump, getCanonicalRulesetPath, getDeprecatedRulesetArchiveInformation, getRESRulesetArchive, getRulesetArchiveInformation, getRulesetArchiveProperties, retrieveRulesetArchiveInformation, setEventDispatcher, setLogHandler, setProfiling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY

public static final String FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
This is the name of the property that specifies what directory the file persistence uses.

See Also:
Constant Field Values
Constructor Detail

IlrFilePersistence

public IlrFilePersistence()
Method Detail

retrieveRESRulesetArchive

public IlrRESRulesetArchive retrieveRESRulesetArchive(IlrPath canonicalPath)
                                               throws IlrPersistenceException
Gets a ruleset archive from the ruleset repository.

The implementation of this method must not implement any kind of caching.

Overrides:
retrieveRESRulesetArchive in class ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
Since:
7.5
Throws:
IlrPersistenceException - Thrown to indicate an error when the ruleset archive is retrieved from the ruleset repository.
Parameters:
canonicalPath - The canonical path of the ruleset.
Returns:
IlrRulesetArchive The ruleset archive.

setProperties

public void setProperties(Map<String,String> properties)
                   throws IlrPersistenceException
Sets the properties of the persistence.

You can set these properties in one of three ways: <

The configuration property name is persistenceProperties.

Any implementation overriding this method must call the setProperties(Map) method.

This method is called before the retrieveRESRulesetArchive(IlrPath) method only if the XU configuration parameter persistenceProperties is defined. This method can be called more than once, for example when the configuration parameter persistenceProperties is modified.

Specified by:
setProperties in interface ilog.rules.res.xu.persistence.internal.IlrXUPersistence
Overrides:
setProperties in class ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
Throws:
IlrPersistenceException - Thrown to indicate wrong properties.
Parameters:
properties - The persistence properties.
See Also:
FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013