FileDocCategorySizeDatePackage
ManagementRuleConfigFactory.javaAPI DocGlassfish v2 API4204Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

ManagementRuleConfigFactory

public final class ManagementRuleConfigFactory extends ConfigFactory

Fields Summary
Constructors Summary
public ManagementRuleConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
	
Methods Summary
public javax.management.ObjectNamecreate(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.ObjectNamecreate(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.OldManagementRulesgetOldManagementRules()

	    return getOldConfigProxies().getOldManagementRules( getConfigName() );
	
protected voidremoveByName(java.lang.String name)

		getOldManagementRules().removeManagementRuleByName( name );