|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the access point for runtime execution of RuleExecutionSets. It provides methods to create RuleSession implementation as well as methods to retrieve RuleExecutionSets that have been previously registered using the RuleAdministrator.
The RuleRuntime should be accessed through the RuleServiceProvider. An instance of the RuleRuntime can be retrieved by calling:
RuleServiceProvider ruleServiceProvider = RuleServiceProvider.newInstance();
RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
Note: the release method must be called on the RuleSession to clean up all resources used by the RuleSession.
RuleSession
,
StatefulRuleSession
,
StatelessRuleSession
Field Summary | |
static int |
STATEFUL_SESSION_TYPE
StatefulRuleSession type flag. |
static int |
STATELESS_SESSION_TYPE
StatelessRuleSession type flag. |
Method Summary | |
RuleSession |
createRuleSession(java.lang.String uri,
java.util.Map properties,
int ruleSessionType)
Creates a RuleSession implementation using the supplied vendor-specific rule execution set registration URI. |
java.util.List |
getRegistrations()
Retrieves a List of the URIs that currently have RuleExecutionSets associated with them. |
Field Detail |
public static final int STATEFUL_SESSION_TYPE
public static final int STATELESS_SESSION_TYPE
Method Detail |
public RuleSession createRuleSession(java.lang.String uri, java.util.Map properties, int ruleSessionType) throws RuleSessionTypeUnsupportedException, RuleSessionCreateException, RuleExecutionSetNotFoundException, java.rmi.RemoteException
uri
- the URI for the RuleExecutionSetproperties
- additional properties used to create the
RuleSession implementation.ruleSessionType
- the type of rule session to create.
RuleSessionTypeUnsupportedException
- if the ruleSessionType is not
supported by the vendor or the RuleExecutionSet
RuleSessionCreateException
- if an internal error prevents a
RuleSession from being created.
RuleExecutionSetNotFoundException
- if the
URI could not be resolved into a RuleExecutionSet
java.rmi.RemoteException
public java.util.List getRegistrations() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |