public class MRulesJmxGlobalRegistrationStrategy extends AbstractMRulesJmxRegistrationStrategy
Modifier and Type | Field and Description |
---|---|
static ObjectName |
DEFAULT_OBJECT_NAME
Name with which MRules MX Bean is registered in JMX Registry.
|
static String |
DEFAULT_OBJECT_NAME_VALUE
Name with which MRules MX Bean is registered in JMX Registry.
|
Constructor and Description |
---|
MRulesJmxGlobalRegistrationStrategy() |
Modifier and Type | Method and Description |
---|---|
MRuleExecutionSetManagementBean.JMXRecorderBuilder |
getJMXRecorderBuilder(MRuleExecutionSetMetadata metadata,
boolean autoRegister)
Returns a
MRuleExecutionSetManagementBean.JMXRecorderBuilder allowing to make all MRuleExecutionSetManagementBean
registered in any MBean server and related to this ruleset collect event data and emit a MRuleExecutionSetMXNotification . |
MRuleExecutionSetManagementBean |
getMBean() |
protected ObjectName |
getObjectName(MRuleExecutionSetMetadata metadata)
Depending on its metadata, the ruleset will be registered with this ObjectName in the JMX bean.
|
protected boolean |
isRegistered(ObjectName mbeanName,
MBeanServer server) |
boolean |
register(MRuleExecutionSetMetadata metadata,
MBeanServer server)
Registers ruleset with this metadata in provided MBean server
|
boolean |
unregister(MRuleExecutionSetMetadata metadata,
MBeanServer server)
Unregisters ruleset with this metadata from provided MBean server
|
getDefaultMBeanServer, isRegistered, isRegistered, register, unregister
public static final String DEFAULT_OBJECT_NAME_VALUE
public static final ObjectName DEFAULT_OBJECT_NAME
protected ObjectName getObjectName(MRuleExecutionSetMetadata metadata)
AbstractMRulesJmxRegistrationStrategy
getObjectName
in class AbstractMRulesJmxRegistrationStrategy
protected boolean isRegistered(ObjectName mbeanName, MBeanServer server)
isRegistered
in class AbstractMRulesJmxRegistrationStrategy
public boolean register(MRuleExecutionSetMetadata metadata, MBeanServer server)
MRulesJmxRegistrationStrategy
public boolean unregister(MRuleExecutionSetMetadata metadata, MBeanServer server)
MRulesJmxRegistrationStrategy
unregister
in interface MRulesJmxRegistrationStrategy
unregister
in class AbstractMRulesJmxRegistrationStrategy
public MRuleExecutionSetManagementBean.JMXRecorderBuilder getJMXRecorderBuilder(MRuleExecutionSetMetadata metadata, boolean autoRegister)
MRulesJmxRegistrationStrategy
MRuleExecutionSetManagementBean.JMXRecorderBuilder
allowing to make all MRuleExecutionSetManagementBean
registered in any MBean server and related to this ruleset collect event data and emit a MRuleExecutionSetMXNotification
.public MRuleExecutionSetManagementBean getMBean()