ManagementRuleConfigFactorypublic final class ManagementRuleConfigFactory extends ConfigFactory
Constructors Summary |
---|
public ManagementRuleConfigFactory(ConfigFactoryCallback callbacks)
super( callbacks );
|
Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String ruleName, java.lang.String eventType, java.lang.String actionMBeanName, java.util.Map optional)
return create(ruleName, eventType, actionMBeanName, null, optional);
| public javax.management.ObjectName | create(java.lang.String ruleName, java.lang.String eventType, java.lang.String actionMBeanName, java.util.Properties eventProperties, java.util.Map optional)
final String ruleDescription = getString( optional, RULE_DESCRIPTION_KEY );
final Boolean ruleEnabled = getBoolean( optional, RULE_ENABLED_KEY, Boolean.FALSE );
final String eventLevel = getString( optional, EVENT_LEVEL_KEY );
final String eventDescription = getString( optional, EVENT_DESCRIPTION_KEY );
final Boolean eventLogging = getBoolean( optional, EVENT_LOG_ENABLED_KEY, Boolean.FALSE );
final ObjectName oldObjectName = getOldManagementRules().createManagementRule(
ruleName,
ruleEnabled,
ruleDescription,
eventType,
eventLevel,
eventLogging,
eventDescription,
eventProperties,
actionMBeanName );
return finish( oldObjectName, null );
| private com.sun.enterprise.management.support.oldconfig.OldManagementRules | getOldManagementRules()
return getOldConfigProxies().getOldManagementRules( getConfigName() );
| protected void | removeByName(java.lang.String name)
getOldManagementRules().removeManagementRuleByName( name );
|
|