|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.bres.model.mbean.util.IlrJmxMutableModel
public class IlrJmxMutableModel
Provides a wrapper for the Rule Execution Server management model MBean. Allows access to local model MBeans as well as through a J2EE cluster (retrieve automatically the Rule Execution Server management model MBean in the cluster). Cannot be used outside the application server.
Provides a default implementation based on JMX 1.0 for local MBean access and a specific implementation for BEA WebLogic, IBM WebSphere, JBoss, and Oracle clusters.
| Field Summary |
|---|
| Fields inherited from interface ilog.rules.bres.model.mbean.IlrJmxModelMBean |
|---|
VALUE_TYPE |
| Constructor Summary | |
|---|---|
IlrJmxMutableModel()
Creates the entry to manage the Rule Execution Server model. |
|
IlrJmxMutableModel(Properties properties)
Creates the entry to manage the Rule Execution Server model. |
|
| Method Summary | |
|---|---|
ObjectName |
addRuleApp(String ruleAppName,
String ruleAppVersion)
Adds a RuleApp to the model with the specified RuleApp name and version. |
long |
getErrorCount()
Returns the number of errors that occurred in all Execution Units (XU). |
IlrJmxMutableRuleApp |
getGreatestRuleApp(String ruleAppName)
Returns the greatest versioned RuleApp in the model with the name equal to ruleAppName. |
ObjectName |
getGreatestRuleAppObjectName(String ruleAppName)
Returns the greatest versioned RuleApp in the model with the name equal to ruleAppName. |
IlrJmxMutableRuleApp |
getRuleApp(String ruleAppName,
String ruleAppVersion)
Retrieves the RuleApp that matches the name ruleAppName and the version
ruleAppVersion. |
ObjectName |
getRuleAppObjectName(String ruleAppName,
String ruleAppVersion)
Returns the RuleApp that matches the name ruleAppName and the version
ruleAppVersion. |
Set |
getRuleAppObjectNames()
Returns all RuleApp objectNames in the model. |
Set |
getRuleAppObjectNames(String ruleAppName)
Returns all RuleApp objectNames in the model with the name equal to ruleAppName. |
Set |
getRuleApps()
Returns all RuleApps in the model. |
Set |
getRuleApps(String ruleAppName)
Returns all RuleApps in the model with the name equal to ruleAppName. |
long |
getWarningCount()
Returns the number of warnings that occurred in all Execution Units (XU). |
Set |
importRuleApps(byte[] ruleAppArchive,
String mergingPolicy,
String versioningPolicy)
Imports a RuleApp archive. |
boolean |
removeRuleApp(String ruleAppName,
String ruleAppVersion)
Removes the specified RuleApp. |
void |
resetErrorCount()
Resets the error count for all XU MBeans. |
void |
resetWarningCount()
Resets the warning count for all XU MBeans. |
IlrJmxMutableRuleApp |
wrapRuleApp(ObjectName ruleAppObjectName)
Creates an IlrJmxMutableRuleApp from an objectName of a
RuleApp MBean. |
IlrJmxMutableRuleset |
wrapRuleset(ObjectName rulesetObjectName)
Creates an IlrJmxMutableRuleset from an objectName of a
ruleset MBean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlrJmxMutableModel()
throws Exception
Exception - If an error occurred during the search for the MBean server.
public IlrJmxMutableModel(Properties properties)
throws Exception
Properties are used if a lookup is used to retrieve the MBean server. Currently useful for WebLogic only.
Exception - If an error occurred during the search of the MBean server.properties - Properties used for a lookup to override the default properties.| Method Detail |
|---|
public IlrJmxMutableRuleApp wrapRuleApp(ObjectName ruleAppObjectName)
IlrJmxMutableRuleApp from an objectName of a
RuleApp MBean.
ruleAppObjectName - The objectName of a RuleApp MBean. Cannot be null.
public IlrJmxMutableRuleset wrapRuleset(ObjectName rulesetObjectName)
IlrJmxMutableRuleset from an objectName of a
ruleset MBean.
rulesetObjectName - The objectName of a ruleset MBean. Cannot be null.
public Set getRuleAppObjectNames()
throws IllegalStateException
getRuleAppObjectNames in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
ObjectNames.IlrJmxModelMBean.getRuleAppObjectNames()
public Set getRuleApps()
throws IllegalStateException
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxMutableRuleApp.IlrJmxModelMBean.getRuleAppObjectNames()
public Set getRuleAppObjectNames(String ruleAppName)
throws IllegalStateException
ruleAppName.
getRuleAppObjectNames in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.
ObjectNames or an empty set if no RuleApps exist with this name.IlrJmxModelMBean.getRuleAppObjectNames(String)
public Set getRuleApps(String ruleAppName)
throws IllegalStateException
ruleAppName.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.
IlrJmxMutableRuleApp or an empty set if no RuleApps exist with this name.IlrJmxModelMBean.getRuleAppObjectNames(String)public ObjectName getGreatestRuleAppObjectName(String ruleAppName)
ruleAppName.
getGreatestRuleAppObjectName in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.
IlrJmxModelMBean.getGreatestRuleAppObjectName(String)public IlrJmxMutableRuleApp getGreatestRuleApp(String ruleAppName)
ruleAppName.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.
IlrJmxModelMBean.getGreatestRuleAppObjectName(String)
public ObjectName getRuleAppObjectName(String ruleAppName,
String ruleAppVersion)
throws IllegalStateException
ruleAppName and the version
ruleAppVersion.
getRuleAppObjectName in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.ruleAppVersion - The RuleApp version.
IlrJmxModelMBean.getRuleAppObjectName(String,
String)
public IlrJmxMutableRuleApp getRuleApp(String ruleAppName,
String ruleAppVersion)
throws IllegalStateException
ruleAppName and the version
ruleAppVersion.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.ruleAppVersion - The RuleApp version.
IlrJmxModelMBean.getRuleAppObjectName(String,
String)
public ObjectName addRuleApp(String ruleAppName,
String ruleAppVersion)
throws InstanceAlreadyExistsException,
InvalidAttributeValueException,
OperationsException,
IllegalStateException
addRuleApp in interface IlrJmxModelMBeanInstanceAlreadyExistsException - If a RuleApp already exists in the model with this name and this version.
InvalidAttributeValueException - If an attribute has an invalid value.
OperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.ruleAppVersion - The RuleApp version.
IlrJmxModelMBean.addRuleApp(String,
String)
public boolean removeRuleApp(String ruleAppName,
String ruleAppVersion)
throws OperationsException,
IllegalStateException
removeRuleApp in interface IlrJmxModelMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppName - The RuleApp name.ruleAppVersion - The RuleApp version.
true if the RuleApp exists and has been removed, otherwise it returns false.IlrJmxModelMBean.removeRuleApp(String,
String)
public Set importRuleApps(byte[] ruleAppArchive,
String mergingPolicy,
String versioningPolicy)
throws InvalidAttributeValueException,
IOException,
OperationsException,
IllegalStateException
importRuleApps in interface IlrJmxModelMBeanInvalidAttributeValueException - If an attribute has an invalid value.
IOException - If an IOException occurred on the RuleApp archive.
OperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.ruleAppArchive - The RuleApp archive.mergingPolicy - The merging policy.versioningPolicy - The versioning policy.
IlrJmxMutableRuleApp that has been successfully imported.IlrJmxModelMBean.importRuleApps(byte[],
String, String)
public long getWarningCount()
throws IllegalStateException
IlrJmxModelMBean
getWarningCount in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxModelMBean.getWarningCount()
public long getErrorCount()
throws IllegalStateException
IlrJmxModelMBean
getErrorCount in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxModelMBean.getErrorCount()
public void resetWarningCount()
throws IllegalStateException
IlrJmxModelMBean
resetWarningCount in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxModelMBean.resetWarningCount()
public void resetErrorCount()
throws IllegalStateException
IlrJmxModelMBean
resetErrorCount in interface IlrJmxModelMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxModelMBean.resetErrorCount()
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||