FileDocCategorySizeDatePackage
ManagementRulesConfig.javaAPI DocGlassfish v2 API5043Fri May 04 22:30:34 BST 2007com.sun.appserv.management.config

ManagementRulesConfig

public interface ManagementRulesConfig implements com.sun.appserv.management.base.Container, ConfigElement, Enabled
Manipulates management rules.
since
Appserver 9.0

Fields Summary
public static final String
J2EE_TYPE
The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}
public static final String
RULE_DESCRIPTION_KEY
For use with createManagementRuleConfig() specifying description of the rule (String)
public static final String
RULE_ENABLED_KEY
For use with createManagementRuleConfig() specifying whether the rule is to be enabled (String)
public static final String
EVENT_LOG_ENABLED_KEY
For use with createManagementRuleConfig() specifying whether event logging is to be enabled (String)
public static final String
EVENT_LEVEL_KEY
For use with createManagementRuleConfig() specifying Event Level [default=INFO] (String)
public static final String
EVENT_PROPERTIES_KEY
DO NOT USE; ignored if used.
public static final String
EVENT_DESCRIPTION_KEY
For use with createManagementRuleConfig() specifying Event description (String)
Constructors Summary
Methods Summary
public ManagementRuleConfigcreateManagementRuleConfig(java.lang.String ruleName, java.lang.String eventType, java.lang.String actionMBeanName, java.util.Map optional)
Use the newer method to be able to specify event properties.

deprecated

public ManagementRuleConfigcreateManagementRuleConfig(java.lang.String ruleName, java.lang.String eventType, java.lang.String actionMBeanName, java.util.Properties eventProperties, java.util.Map optional)
Create new self management rule. In addition to the formal parameters, the following optional parameters may be specified:
  • {@link #RULE_DESCRIPTION_KEY}
  • {@link #RULE_ENABLED_KEY}
  • {@link #EVENT_DESCRIPTION_KEY}
  • {@link #EVENT_LOG_ENABLED_KEY}
  • {@link #EVENT_LEVEL_KEY}

param
ruleName name of the management rule. Required.
param
eventType one of the values defined in {@link EventTypeValues}
param
actionMBeanName actionMbeanName associated with rule (optional)
param
optional optional additional values
return
ObjectName of created management-rule
throws
Exception
see
EventTypeValues

public java.util.MapgetManagementRuleConfigMap()

public voidremoveManagementRuleConfig(java.lang.String name)