|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrJMXRepositoryMBean
Represents the entry point for the Rule Execution Server management model.
The Rule Execution Server model allows you to create, list, and remove RuleApps. It also provides facilities for processing and retrieving RuleApp archives.
IlrJMXRulesetMBean
,
IlrJMXRuleAppMBean
Field Summary | |
---|---|
static String |
VALUE_TYPE
The type used in the objectName of the model MBean. |
Method Summary | |
---|---|
ObjectName |
addRuleApp(String ruleAppName,
String ruleAppVersion)
Returns a RuleApp with the name and the version. |
long |
getErrorCount()
Returns the number of errors that occurred in all Execution Units (XU). |
ObjectName |
getGreatestRuleAppObjectName(String ruleAppName)
Returns the RuleApp with the name and the greatest version or null if none. |
ObjectName |
getRuleAppObjectName(String ruleAppName,
String ruleAppVersion)
Returns a RuleApp with the name and the version or null if
none. |
Set<ObjectName> |
getRuleAppObjectNames()
Returns all RuleApps. |
Set<ObjectName> |
getRuleAppObjectNames(String ruleAppName)
Returns all RuleApps with the specified name. |
long |
getWarningCount()
Returns the number of warnings that occurred in all Execution Units (XU). |
Set |
importRuleApps(byte[] ruleAppArchive,
String mergingPolicy,
String versioningPolicy)
Loads a RuleApp archive in the current model. |
boolean |
removeRuleApp(String ruleAppName,
String ruleAppVersion)
Removes a RuleApp with the name and the version. |
void |
resetErrorCount()
Resets the error count for all XU MBeans. |
void |
resetWarningCount()
Resets the warning count for all XU MBeans. |
Field Detail |
---|
static final String VALUE_TYPE
Method Detail |
---|
Set<ObjectName> getRuleAppObjectNames()
ObjectName
s.Set<ObjectName> getRuleAppObjectNames(String ruleAppName)
ruleAppName
- The name of the RuleApp.
ObjectName
s.ObjectName getGreatestRuleAppObjectName(String ruleAppName)
null
if none.
ruleAppName
- The name of the RuleApp.
null
.ObjectName getRuleAppObjectName(String ruleAppName, String ruleAppVersion)
null
if
none.
ruleAppName
- The name of the RuleApp.ruleAppVersion
- The version with the format: "MajorNumber.MinorNumber".
null
.ObjectName addRuleApp(String ruleAppName, String ruleAppVersion) throws InstanceAlreadyExistsException, InvalidAttributeValueException, OperationsException
InstanceAlreadyExistsException
- If the specified RuleApp already exists.
InvalidAttributeValueException
- If an attribute has the wrong format.
OperationsException
- If an internal error occurred.ruleAppName
- The name of the RuleApp. Must match the regexp
[\p{Alpha}\p{Digit}_]+ruleAppVersion
- The version with the format: "MajorNumber.MinorNumber".
MajorNumber must be greater than 0. MinorNumber must be
greater or equal to 0.
boolean removeRuleApp(String ruleAppName, String ruleAppVersion) throws OperationsException
If parameters do not match an existing RuleApp it returns
false
, otherwise it returns true
.
OperationsException
- If an internal error occurred.ruleAppName
- The name of the RuleApp.ruleAppVersion
- The version of the RuleApp.
true
if the specified RuleApp has been removed,
otherwise false
.Set importRuleApps(byte[] ruleAppArchive, String mergingPolicy, String versioningPolicy) throws InvalidAttributeValueException, IOException, OperationsException
Arguments mergingPolicy and versioningPolicy are used to resolve name and version conflicts between an existing RuleApp and a new RuleApp in an archive. Possible values are:
ADD_AT_END_MERGING_POLICY with MAJOR_VERSION_POLICY
':
The existing RuleApp is not modified. The version of the new RuleApp is
modified to avoid a conflict. The new RuleApp version is the greater
version for this RuleApp name with the major number incremented by 1 and
0 for the minor number. For example, if the RuleApp /MyRuleApp/1.0
already exists and you try to import a RuleApp archive that contains the
RuleApp /MyRuleApp/1.0 then the existing RuleApp is not modified and the
new RuleApp is added with the version 2.0.ADD_AT_END_MERGING_POLICY with MINOR_VERSION_POLICY
':
The existing RuleApp is not modified. The version of the new RuleApp is
modified to avoid a conflict. The new RuleApp version is the greater
version for this RuleApp name with the minor number incremented by 1. For
example, if the RuleApp /MyRuleApp/1.0 already exists and you try to
import a RuleApp archive that contains the RuleApp /MyRuleApp/1.0 then
the existing RuleApp is not modified and the new RuleApp is added with
the version 1.1.REPLACE_MERGING_POLICY
': The existing RuleApp is
replaced by the new RuleApp. With this policy the argument
versioningPolicy is not used.ADD_AT_END_RULESET_MERGING_POLICY with MAJOR_VERSION_POLICY
':
The existing Ruleset is not modified. The version of the new Ruleset is
modified to avoid a conflict. The new Ruleset version is the greater
version for this Ruleset name with the major number incremented by 1 and
0 for the minor number. For example, if the Ruleset
/MyRuleApp/1.0/MyRuleset/1.0 already exists and you try to import a
RuleApp archive that contains the RuleApp /MyRuleApp/1.0/MyRuleset/1.0
then the existing Ruleset is not modified and the new Ruleset is added
with the version 2.0.ADD_AT_END_RULESET_MERGING_POLICY with MINOR_VERSION_POLICY
':
The existing Ruleset is not modified. The version of the new Ruleset is
modified to avoid a conflict. The new Ruleset version is the greater
version for this Ruleset name with the minor number incremented by 1. For
example, if the Ruleset /MyRuleApp/1.0/MyRuleset/1.0 already exists and
you try to import a RuleApp archive that contains the Ruleset
/MyRuleApp/1.0/MyRuleset/1.0 then the existing Ruleset is not modified
and the new Ruleset is added with the version 1.1.REPLACE_RULESET_MERGING_POLICY
': The existing
Ruleset is replaced by the new Ruleset. With this policy the argument
versioningPolicy is not used.
InvalidAttributeValueException
- If an attribute is invalid.
IOException
OperationsException
- If the RuleApp archive has the wrong format or an internal
error occurred.ruleAppArchive
- A byte array of a Rule Execution Server management model
archive contents. Cannot be null.mergingPolicy
- The merging policy.versioningPolicy
- The versioning policy.
ObjectName
s for RuleApps that have been
added to the current model.long getWarningCount()
long getErrorCount()
void resetWarningCount()
void resetErrorCount()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |