public class IlrDecisionServiceMBeanManager
extends java.lang.Object
| Constructor and Description |
|---|
IlrDecisionServiceMBeanManager()
Creates the decision service MBean manager.
|
IlrDecisionServiceMBeanManager(java.util.Properties jmxProperties)
Creates the decision service MBean manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(long timestamp)
Signals an error for the decision service.
|
void |
addMeasurement(java.lang.String executedCanonicalRulesetPath,
long timestamp,
long duration)
Add measurement for the decision service.
|
IlrDecisionServiceMBean |
getMBean()
Returns the decision service MBean.
|
javax.management.ObjectName |
getObjectName()
Returns the decision service MBean ObjectName.
|
void |
register(java.lang.String name,
java.lang.String rulesetPath,
java.util.Properties properties)
Register the decision service MBean into the local MBean server.
|
void |
unregister()
Unregister the decision service MBean into the local MBean server.
|
public IlrDecisionServiceMBeanManager()
public IlrDecisionServiceMBeanManager(java.util.Properties jmxProperties)
Properties are used to retrieve the MBean server (in case of a JNDI lookup for example to override default JNDI properties).
jmxProperties - Properties used to retrieve the MBean server.public void register(java.lang.String name,
java.lang.String rulesetPath,
java.util.Properties properties)
throws IlrDecisionServiceMBeanException
IlrDecisionServiceMBeanException - If an error occurred during the registration of the MBean.name - The decision service name. This name will be integrated in the
MBean ObjectName, so it must be unique for the local MBean server.
If it is not unique, an IlrDecisionServiceMBeanException will be thrown.
There are some restrictions on characters that can be used for
this name due to JMX, the name cannot contain any of the characters: comma,
equals, colon, quote, asterisk, or question mark.rulesetPath - The ruleset path of the ruleset that will be executed by
this decision service. This information is used in the console
to display the decision service under the right ruleset.properties - Properties of the decision service.public void unregister()
throws IlrDecisionServiceMBeanException
IlrDecisionServiceMBeanException - If an error occurred during the unregistration of the MBean.public javax.management.ObjectName getObjectName()
null if the MBean is not registered.null if the MBean is not registered.public IlrDecisionServiceMBean getMBean()
public void addMeasurement(java.lang.String executedCanonicalRulesetPath,
long timestamp,
long duration)
executedCanonicalRulesetPath - The canonical ruleset path returned by the execution. Cannot be null.timestamp - The timestamp of the execution.duration - The execution duration.public void addError(long timestamp)
timestamp - The timestamp of the error.© Copyright IBM Corp. 1987, 2017