|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrDecisionServiceMBean
Represents a decision service MBean in Rule Execution Server. This MBean allows you to manage decision services (properties, activation), as well as exposing execution statistics.
A JMX notification is sent if a property is changed on an MBean instance
(on the call of the method setProperty
). The notification type is
IlrDecisionServiceMBean.NOTIFICATION_PROPERTY_CHANGE
. The message contains
the property key that has been changed. The new value of the
property is retrieved from userData
(null
if the property has been removed).
Another JMX notification is sent if the decision service has been activated or deactivated
(on the call of the method setActivated
). The
notification type is IlrDecisionServiceMBean.NOTIFICATION_ACTIVATED_CHANGE
. The status
is retrieved from userData
.
Field Summary | |
---|---|
static String |
KEY_AUTHOR
The key property that can be used to add the author of this decision service. |
static String |
KEY_CREATION_DATE
The key property that can be used to add the creation date of this decision service. |
static String |
KEY_DESCRIPTION
The key property that can be used to add the description of this decision service. |
static String |
KEY_VERSION
The key property that can be used to add the version of this decision service. |
static String |
NOTIFICATION_ACTIVATED_CHANGE
Notification type if the decision service has been activated or deactivate. |
static String |
NOTIFICATION_PROPERTY_CHANGE
Notification type if a property is changed. |
Method Summary | |
---|---|
double |
getAverageExecutionTime()
Returns the average time passed in execution for this decision service. |
long |
getErrorsCount()
Returns the number of errors for this decision service. |
String |
getExecutedCanonicalRulesetPath()
Returns the canonical ruleset path of the ruleset executed. |
long |
getExecutionCount()
Returns the number of executions for this decision service. |
long |
getFirstExecutionDate()
Returns the date of the first execution of this decision service. |
long |
getLastErrorDate()
Returns the date of the last error for this decision service. |
long |
getLastExecutionDate()
Returns the date of the last execution of this decision service. |
long |
getLastExecutionTime()
Returns the last time passed in execution for this decision service. |
long |
getMaxExecutionTime()
Returns the longest time passed in execution for this decision service. |
ObjectName |
getMBeanObjectName()
Returns the object name of this MBean. |
long |
getMinExecutionTime()
Returns the shortest time passed in execution for this decision service. |
String |
getName()
Returns the name of this decision service. |
Properties |
getProperties()
Returns a copy of all properties defined on this decision service. |
String |
getRulesetPath()
Returns the ruleset path used for the execution. |
long |
getTotalExecutionTime()
Returns the total time passed in execution for this decision service. |
boolean |
isActivated()
Returns true if the decision service is activated. |
void |
resetStatistics()
Reset all statistics. |
void |
setActivated(boolean activated)
Sets the status of the decision service. |
void |
setProperty(String key,
String value)
Sets the value corresponding to a key. |
Field Detail |
---|
static final String NOTIFICATION_PROPERTY_CHANGE
static final String NOTIFICATION_ACTIVATED_CHANGE
static final String KEY_AUTHOR
static final String KEY_VERSION
static final String KEY_CREATION_DATE
static final String KEY_DESCRIPTION
Method Detail |
---|
String getName()
String getRulesetPath()
String getExecutedCanonicalRulesetPath()
IlrDecisionServiceMBeanManager.addMeasurement(String, long, long)
.
boolean isActivated()
true
if the decision service is activated.
true
if the decision service is activated.void setActivated(boolean activated)
activated
- The new status.Properties getProperties()
void setProperty(String key, String value)
null
the key will be removed. This modification is not persistent.
key
- The property key.value
- The value corresponding to key.void resetStatistics()
long getExecutionCount()
long getErrorsCount()
long getLastErrorDate()
long getTotalExecutionTime()
double getAverageExecutionTime()
long getMaxExecutionTime()
long getMinExecutionTime()
long getLastExecutionTime()
long getFirstExecutionDate()
long getLastExecutionDate()
ObjectName getMBeanObjectName()
null
if the MBean is not registered.
null
if the MBean is not registered.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |