public interface IlrManagementSession
IlrManagementSession is the base interface for management
sessions. Use a management session to manipulate RuleApps and rulesets
in the repository, and to retrieve metadata.
The following code example shows how to invalidate a ruleset in a POJO session.
//Get the rule session factory. IlrJ2SESessionFactory sessionFactory = new IlrJ2SESessionFactory(new PrintWriter(System.out)); //Create the management session. IlrManagementSession managementSession=sessionFactory.createManagementSession(); //Invalidate a ruleset. String rulesetPath = "/ruleApp/ruleset"; managementSession.invalidate(rulesetPath);
| Modifier and Type | Method and Description |
|---|---|
IlrRepositoryFactory |
getRepositoryFactory()
Returns the repository factory.
|
void |
invalidate(IlrPath rulesetPath)
Invalidates the ruleset.
|
void |
invalidate(IlrPath[] rulesetPaths)
Invalidates some rulesets.
|
void |
loadUptodateRuleset(IlrPath rulesetPath)
Loads and parses a specific ruleset.
|
IlrPath[] |
solveRulesetPath(IlrPath[] rulesetPaths)
Resolves an array of canonical ruleset paths.
|
IlrRepositoryFactory getRepositoryFactory() throws IlrSessionException
An - IlrSessionException object if an error occurred while
the repository factory was retrieved.IlrSessionExceptionvoid invalidate(IlrPath rulesetPath) throws IlrSessionException
If the management session was created from a IlrJ2SESessionFactory, a connection to the XU
is used for this operation. If no XU connection can be opened, an IlrSessionException is
raised.
An - IlrSessionException object if an error occurs while the ruleset is
invalidated.IlrSessionExceptionrulesetPath - The canonical path for the ruleset to be invalidatedvoid invalidate(IlrPath[] rulesetPaths) throws IlrSessionException
If the management session was created from a IlrJ2SESessionFactory, a connection to the XU
is used for this operation. If no XU connection can be opened, an IlrSessionException is
raised.
An - IlrSessionException object if an error occurs while the rulesets are
invalidated.IlrSessionExceptionrulesetPaths - An array of canonical paths for the rulesets to be invalidated.IlrPath[] solveRulesetPath(IlrPath[] rulesetPaths) throws IlrSessionException
An - IlrSessionException object if an error occurs while
the ruleset paths are resolved, for example if a ruleset path is wrong.IlrSessionExceptionrulesetPaths - The array of ruleset paths to be resolved.void loadUptodateRuleset(IlrPath rulesetPath) throws IlrSessionException
An - IlrSessionException object if an error occurred while
the ruleset was loaded, for example if the ruleset path is wrong.IlrSessionExceptionrulesetPath - The path of the ruleset to be loaded.© Copyright IBM Corp. 1987, 2017