|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrJMXRulesetMBean
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
Field Summary | |
---|---|
static String |
KEY_NAME
The property key for the ruleset name in the objectName of all ruleset MBeans. |
static String |
KEY_RULEAPP_NAME
The property key for the RuleApp name in the objectName of all ruleset MBeans. |
static String |
KEY_RULEAPP_VERSION
The property key for the RuleApp name in the objectName of all ruleset MBeans. |
static String |
KEY_VERSION
The property key for the ruleset version in the objectName of all ruleset MBeans. |
static String |
NOTIFICATION_PROPERTY_CHANGE
Notification type if a property is changed. |
static String |
NOTIFICATION_RULESET_ARCHIVE_CHANGE
Notification type if a ruleset archive is changed. |
static String |
VALUE_TYPE
The type used in the objectName of all ruleset MBeans. |
Method Summary | |
---|---|
double |
getAverageExecuteTaskTime()
Deprecated. |
double |
getAverageExecuteTime()
Returns the average time passed in the "execute" operation in all Execution Units (XU), for this ruleset. |
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. |
ObjectName |
getParentRuleAppObjectName()
Returns the parent RuleApp of this ruleset. |
Properties |
getProperties()
Returns all the properties defined on this ruleset. |
String |
getProperty(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. |
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(String key,
String value)
Sets the value corresponding to a key. |
void |
setRESRulesetArchive(String engineType,
byte[] content)
Sets the RES ruleset archive as a stream. |
void |
setRulesetArchive(byte[] rulesetArchive)
Deprecated. Use setRESRulesetArchive(String, byte[]) instead. |
void |
setStatus(String status)
Sets the status of the ruleset. |
Methods inherited from interface ilog.rules.res.model.mbean.IlrJMXEntityMBean |
---|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getRepositoryObjectName, getVersion, setDescription, setDisplayName |
Field Detail |
---|
static final String VALUE_TYPE
static final String KEY_NAME
static final String KEY_VERSION
static final String KEY_RULEAPP_NAME
static final String KEY_RULEAPP_VERSION
static final String NOTIFICATION_PROPERTY_CHANGE
static final String NOTIFICATION_RULESET_ARCHIVE_CHANGE
Method Detail |
---|
ObjectName getParentRuleAppObjectName()
String getCanonicalRulesetPath()
/RuleAppName/RuleAppVersion/RulesetName/RulesetVersion
.
String getStatus() throws OperationsException
getProperties().getProperty("ruleset.status")
.
OperationsException
- If a data access error or a concurrent usage occurred.
void setStatus(String status) throws OperationsException
setProperty("ruleset.status", status)
.
OperationsException
- If a data access error or a concurrent usage occurred.status
- The new ruleset status.byte[] getRulesetArchive() throws OperationsException
getRESRulesetArchive()
instead.
OperationsException
- If data access error occurred.
byte[] getRESRulesetArchive() throws OperationsException
OperationsException
- If data access error occurred.
void setRulesetArchive(byte[] rulesetArchive) throws InvalidAttributeValueException, OperationsException
setRESRulesetArchive(String, byte[])
instead.
InvalidAttributeValueException
- if rulesetArchive
is null
.
OperationsException
- if a data access error occurred.rulesetArchive
- The ruleset archive JAR stored in a byte array. Cannot be null
.void setRESRulesetArchive(String engineType, byte[] content) throws InvalidAttributeValueException, OperationsException
InvalidAttributeValueException
OperationsException
engineType
- 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.String getProperty(String key) throws OperationsException
OperationsException
- if a data access error occurred.key
- The property key.
Properties getProperties() throws OperationsException
OperationsException
- if a data access error occurred.
void setProperty(String key, String value) throws OperationsException
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()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |