|
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.IlrJmxMutableEntity
ilog.rules.bres.model.mbean.util.IlrJmxMutableRuleApp
public class IlrJmxMutableRuleApp
Provides a wrapper for RuleApp MBeans. Allows access to local RuleApp MBeans as well as through a J2EE cluster (retrieve automatically RuleApp MBeans 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.IlrJmxRuleAppMBean |
|---|
KEY_NAME, KEY_VERSION, NOTIFICATION_PROPERTY_CHANGE, VALUE_TYPE |
| Method Summary | |
|---|---|
ObjectName |
addRuleset(String rulesetName,
String rulesetVersion,
byte[] rulesetArchive)
Adds a ruleset to the model with the specified ruleset name and version. |
ObjectName |
addRuleset(String rulesetName,
String rulesetVersion,
String irl)
Deprecated. As of JRules 6.0, replaced by addRuleset(String, String, byte[]). |
byte[] |
export()
Creates a RuleApp archive from this RuleApp. |
IlrJmxMutableRuleset |
getGreatestRuleset(String rulesetName)
Returns the greatest versioned ruleset with the name equal to rulesetName. |
ObjectName |
getGreatestRulesetObjectName(String rulesetName)
Returns the greatest versioned ruleset with the name equal to rulesetName. |
ObjectName |
getObjectName()
Returns the objectName of this RuleApp MBean. |
Properties |
getProperties()
Returns all ruleset properties. |
String |
getProperty(String key)
Returns the property with the specified key. |
IlrJmxMutableRuleset |
getRuleset(String rulesetName,
String rulesetVersion)
Returns the ruleset in this RuleApp that match the rulesetName
and the rulesetVersion. |
ObjectName |
getRulesetObjectName(String rulesetName,
String rulesetVersion)
Returns the ruleset objectName in this RuleApp that match the rulesetName and the rulesetVersion. |
Set |
getRulesetObjectNames()
Returns all ruleset objectNames of this RuleApp. |
Set |
getRulesetObjectNames(String rulesetName)
Returns all ruleset objectNames that match rulesetName. |
Set |
getRulesets()
Returns all rulesets of this RuleApp. |
Set |
getRulesets(String rulesetName)
Returns all rulesets of this RuleApp that match rulesetName. |
boolean |
removeRuleset(String rulesetName,
String rulesetVersion)
Removes the specified ruleset. |
void |
setProperty(String key,
String value)
Sets the value corresponding to a key. |
| Methods inherited from class ilog.rules.bres.model.mbean.util.IlrJmxMutableEntity |
|---|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getVersion, setDescription, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.rules.bres.model.mbean.IlrJmxEntityMBean |
|---|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getVersion, setDescription, setDisplayName |
| Method Detail |
|---|
public ObjectName getObjectName()
public Set getRulesetObjectNames()
throws IllegalStateException
getRulesetObjectNames in interface IlrJmxRuleAppMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
ObjectNames.IlrJmxRuleAppMBean.getRulesetObjectNames()
public Set getRulesets()
throws IllegalStateException
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxMutableRuleset.IlrJmxRuleAppMBean.getRulesetObjectNames()
public Set getRulesetObjectNames(String rulesetName)
throws IllegalStateException
rulesetName.
getRulesetObjectNames in interface IlrJmxRuleAppMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.
ObjectNames or an empty set if no ruleset exists with this name.IlrJmxRuleAppMBean.getRulesetObjectNames(String)
public Set getRulesets(String rulesetName)
throws IllegalStateException
rulesetName.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.
IlrJmxMutableRuleset or an empty set if no ruleset exists with this name.IlrJmxRuleAppMBean.getRulesetObjectNames(String)public ObjectName getGreatestRulesetObjectName(String rulesetName)
rulesetName.
getGreatestRulesetObjectName in interface IlrJmxRuleAppMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.
IlrJmxRuleAppMBean.getGreatestRulesetObjectName(String)public IlrJmxMutableRuleset getGreatestRuleset(String rulesetName)
rulesetName.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.
IlrJmxRuleAppMBean.getGreatestRulesetObjectName(String)
public ObjectName getRulesetObjectName(String rulesetName,
String rulesetVersion)
throws IllegalStateException
rulesetName and the rulesetVersion.
getRulesetObjectName in interface IlrJmxRuleAppMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.rulesetVersion - The ruleset version.
IlrJmxRuleAppMBean.getRulesetObjectName(String,
String)
public IlrJmxMutableRuleset getRuleset(String rulesetName,
String rulesetVersion)
throws IllegalStateException
rulesetName
and the rulesetVersion.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.rulesetVersion - The ruleset version.
IlrJmxRuleAppMBean.getRulesetObjectName(String,
String)
public ObjectName addRuleset(String rulesetName,
String rulesetVersion,
String irl)
throws IllegalStateException,
InstanceAlreadyExistsException,
InvalidAttributeValueException,
OperationsException
addRuleset(String, String, byte[]).
addRuleset in interface IlrJmxRuleAppMBeanInstanceAlreadyExistsException - If a ruleset 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.rulesetName - The ruleset name.rulesetVersion - The ruleset version.irl - The ruleset.
IlrJmxRuleAppMBean.addRuleset(java.lang.String,
java.lang.String, java.lang.String)
public ObjectName addRuleset(String rulesetName,
String rulesetVersion,
byte[] rulesetArchive)
throws IllegalStateException,
InstanceAlreadyExistsException,
InvalidAttributeValueException,
OperationsException
addRuleset in interface IlrJmxRuleAppMBeanInstanceAlreadyExistsException - If a ruleset 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.rulesetName - The ruleset name.rulesetVersion - The ruleset version.rulesetArchive - The ruleset archive JAR stored in a byte array.
IlrJmxRuleAppMBean.addRuleset(String,
String, byte[])
public boolean removeRuleset(String rulesetName,
String rulesetVersion)
throws IllegalStateException,
OperationsException
removeRuleset in interface IlrJmxRuleAppMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetName - The ruleset name.rulesetVersion - The ruleset version.
true if the ruleset exists and has been removed, otherwise it returns false.IlrJmxRuleAppMBean.removeRuleset(String,
String)
public String getProperty(String key)
throws OperationsException,
IllegalStateException
getProperty in interface IlrJmxRuleAppMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.key - The property key. Cannot be null.
IlrJmxRuleAppMBean.getProperty(String)
public Properties getProperties()
throws OperationsException,
IllegalStateException
getProperties in interface IlrJmxRuleAppMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxRuleAppMBean.getProperties()
public void setProperty(String key,
String value)
throws OperationsException,
IllegalStateException
setProperty in interface IlrJmxRuleAppMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.key - The property key.value - The new value.IlrJmxRuleAppMBean.setProperty(String,
String)
public byte[] export()
throws OperationsException,
IllegalStateException
export in interface IlrJmxRuleAppMBeanIOException - If an IOException occurred during the creation of 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.
IlrJmxRuleAppMBean.export()
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||