public interface IlrDecisionServiceMBean
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_AUTHOR
The key property that can be used to add the author of this decision service.
|
static java.lang.String |
KEY_CREATION_DATE
The key property that can be used to add the creation date of this decision service.
|
static java.lang.String |
KEY_DESCRIPTION
The key property that can be used to add the description of this decision service.
|
static java.lang.String |
KEY_VERSION
The key property that can be used to add the version of this decision service.
|
static java.lang.String |
NOTIFICATION_ACTIVATED_CHANGE
Notification type if the decision service has been activated or deactivate.
|
static java.lang.String |
NOTIFICATION_PROPERTY_CHANGE
Notification type if a property is changed.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageExecutionTime()
Returns the average time passed in execution for this decision service.
|
long |
getErrorsCount()
Returns the number of errors for this decision service.
|
java.lang.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.
|
javax.management.ObjectName |
getMBeanObjectName()
Returns the object name of this MBean.
|
long |
getMinExecutionTime()
Returns the shortest time passed in execution for this decision service.
|
java.lang.String |
getName()
Returns the name of this decision service.
|
java.util.Properties |
getProperties()
Returns a copy of all properties defined on this decision service.
|
java.lang.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(java.lang.String key,
java.lang.String value)
Sets the value corresponding to a key.
|
static final java.lang.String NOTIFICATION_PROPERTY_CHANGE
static final java.lang.String NOTIFICATION_ACTIVATED_CHANGE
static final java.lang.String KEY_AUTHOR
static final java.lang.String KEY_VERSION
static final java.lang.String KEY_CREATION_DATE
static final java.lang.String KEY_DESCRIPTION
java.lang.String getName()
java.lang.String getRulesetPath()
java.lang.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.java.util.Properties getProperties()
void setProperty(java.lang.String key,
java.lang.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()
javax.management.ObjectName getMBeanObjectName()
null if the MBean is not registered.null if the MBean is not registered.© Copyright IBM Corp. 1987, 2017