public interface IlrJMXRulesetMBean extends IlrJMXEntityMBean
IlrJMXRulesetMBean represents a ruleset entity in the Rule Execution Server management model. Use this ruleset entity to manage the ruleset resources used for execution (properties, ruleset archive, canonical ruleset path) and to expose execution statistics.
A JMX notification is sent if a property has changed on an MBean instance, that is, when the setProperty method is called. The notification type is IlrJMXRulesetMBean.NOTIFICATION_PROPERTY_CHANGE. This message contains the property key that has been changed, The new value of the property is retrieved from userData. If this property has been removed, the value is null.
Another JMX notification is sent if a ruleset archive has been changed on an MBean instance when the setRulesetArchive method is called. The notification type is IlrJMXRulesetMBean.NOTIFICATION_RULESET_ARCHIVE_CHANGE.
The following code example shows how to retrieve a deployed ruleset archive:
public IlrJMXRulesetMBean getRulesetMBean(ObjectName rulesetMBeanName) {
return (IlrJMXRulesetMBean) Proxy.newProxyInstance(IlrJMXRulesetMBean.class.getClassLoader(), new Class[] { IlrJMXRulesetMBean.class }, createHandler(rulesetMBeanName));
}
IlrJMXRepositoryMBean,
IlrJMXRuleAppMBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_NAME
The property key for the ruleset name in the objectName of all ruleset MBeans.
|
static java.lang.String |
KEY_RULEAPP_NAME
The property key for the RuleApp name in the objectName of all ruleset MBeans.
|
static java.lang.String |
KEY_RULEAPP_VERSION
The property key for the RuleApp name in the objectName of all ruleset MBeans.
|
static java.lang.String |
KEY_VERSION
The property key for the ruleset version in the objectName of all ruleset MBeans.
|
static java.lang.String |
NOTIFICATION_PROPERTY_CHANGE
Notification type if a property is changed.
|
static java.lang.String |
NOTIFICATION_RULESET_ARCHIVE_CHANGE
Notification type if a ruleset archive is changed.
|
static java.lang.String |
VALUE_TYPE
The type used in the objectName of all ruleset MBeans.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageExecuteTaskTime()
Deprecated.
|
double |
getAverageExecuteTime()
Returns the average time passed in the "execute" operation in all Execution Units (XU), for this ruleset.
|
java.lang.String |
getCanonicalRulesetPath()
Returns the identifier of the ruleset.
|
long |
getExecuteCount()
Returns the number of "execute" operations in all Execution Units (XU), for this ruleset.
|
long |
getExecuteTaskCount()
Deprecated.
|
long |
getFirstExecuteTaskTime()
Deprecated.
|
long |
getFirstExecuteTime()
Returns the date of the first "execute" operation in all Execution Units (XU), for this ruleset.
|
long |
getLastExecuteDuration()
Returns the time of the last "execute" operation in all Execution Units (XU), for this ruleset.
|
long |
getLastExecuteTaskDuration()
Deprecated.
|
long |
getLastExecuteTaskTime()
Deprecated.
|
long |
getLastExecuteTime()
Returns the date of the last "execute" operation in all Execution Units (XU), for this ruleset.
|
long |
getMaxExecuteTaskTime()
Deprecated.
|
long |
getMaxExecuteTime()
Returns the longest time passed in the "execute" operation in all Execution Units (XU), for this ruleset.
|
long |
getMinExecuteTaskTime()
Deprecated.
|
long |
getMinExecuteTime()
Returns the shortest time passed in the "execute" operation in all Execution Units (XU), for this ruleset.
|
javax.management.ObjectName |
getParentRuleAppObjectName()
Returns the parent RuleApp of this ruleset.
|
java.util.Properties |
getProperties()
Returns all the properties defined on this ruleset.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the property value specified with the key.
|
byte[] |
getRESRulesetArchive()
Returns the RES ruleset archive JAR stored in a byte array.
|
byte[] |
getRulesetArchive()
Deprecated.
Use
getRESRulesetArchive() instead. |
java.lang.String |
getStatus()
Returns the status of the ruleset.
|
long |
getTotalExecuteTaskTime()
Deprecated.
|
long |
getTotalExecuteTime()
Returns the total time passed in the "execute" operation in all Execution Units (XU), for this ruleset.
|
void |
resetStatistics()
Resets all statistics for this ruleset.
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value corresponding to a key.
|
void |
setRESRulesetArchive(java.lang.String engineType,
byte[] content)
Sets the RES ruleset archive as a stream.
|
void |
setRulesetArchive(byte[] rulesetArchive)
Deprecated.
Use
setRESRulesetArchive(String, byte[]) instead. |
void |
setStatus(java.lang.String status)
Sets the status of the ruleset.
|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getRepositoryObjectName, getVersion, setDescription, setDisplayNamestatic final java.lang.String VALUE_TYPE
static final java.lang.String KEY_NAME
static final java.lang.String KEY_VERSION
static final java.lang.String KEY_RULEAPP_NAME
static final java.lang.String KEY_RULEAPP_VERSION
static final java.lang.String NOTIFICATION_PROPERTY_CHANGE
static final java.lang.String NOTIFICATION_RULESET_ARCHIVE_CHANGE
javax.management.ObjectName getParentRuleAppObjectName()
java.lang.String getCanonicalRulesetPath()
/RuleAppName/RuleAppVersion/RulesetName/RulesetVersion.java.lang.String getStatus()
throws javax.management.OperationsException
getProperties().getProperty("ruleset.status").javax.management.OperationsException - If a data access error or a concurrent usage occurred.void setStatus(java.lang.String status)
throws javax.management.OperationsException
setProperty("ruleset.status", status).javax.management.OperationsException - If a data access error or a concurrent usage occurred.status - The new ruleset status.byte[] getRulesetArchive()
throws javax.management.OperationsException
getRESRulesetArchive() instead.javax.management.OperationsException - If data access error occurred.byte[] getRESRulesetArchive()
throws javax.management.OperationsException
javax.management.OperationsException - If data access error occurred.void setRulesetArchive(byte[] rulesetArchive)
throws javax.management.InvalidAttributeValueException,
javax.management.OperationsException
setRESRulesetArchive(String, byte[]) instead.javax.management.InvalidAttributeValueException - if rulesetArchive is null.javax.management.OperationsException - if a data access error occurred.rulesetArchive - The ruleset archive JAR stored in a byte array. Cannot be null.void setRESRulesetArchive(java.lang.String engineType,
byte[] content)
throws javax.management.InvalidAttributeValueException,
javax.management.OperationsException
javax.management.InvalidAttributeValueExceptionjavax.management.OperationsExceptionengineType - The type of the engine to be used with this archive: IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RCE, IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RVE, IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RVEND.content - The content of this archive.java.lang.String getProperty(java.lang.String key)
throws javax.management.OperationsException
javax.management.OperationsException - if a data access error occurred.key - The property key.java.util.Properties getProperties()
throws javax.management.OperationsException
javax.management.OperationsException - if a data access error occurred.void setProperty(java.lang.String key,
java.lang.String value)
throws javax.management.OperationsException
javax.management.OperationsException - if a data access error occurred.key - The key to be placed into the property list.value - The value corresponding to key.long getExecuteCount()
long getTotalExecuteTime()
double getAverageExecuteTime()
long getMaxExecuteTime()
long getMinExecuteTime()
long getFirstExecuteTime()
long getLastExecuteTime()
long getLastExecuteDuration()
long getExecuteTaskCount()
long getTotalExecuteTaskTime()
double getAverageExecuteTaskTime()
long getMaxExecuteTaskTime()
long getMinExecuteTaskTime()
long getFirstExecuteTaskTime()
long getLastExecuteTaskTime()
long getLastExecuteTaskDuration()
void resetStatistics()
© Copyright IBM Corp. 1987, 2017