Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.ManagementRules


        action.setActionMbeanName(actionMbeanName);
        newRule.setAction(action);
       
    }
    // insert new rule to config tree
    ManagementRules rules = (ManagementRules)getBaseConfigBean();
    rules.addManagementRule(newRule);
    return ConfigMBeanHelper.getChildObjectName(super.m_registry, super.info, newRule);
}
View Full Code Here


     */
public void addActionToManagementRule(
            String  ruleName,           //required
            String  actionMbeanNamethrows ConfigException
{
    ManagementRules rules = (ManagementRules)getBaseConfigBean();
    ManagementRule  rule = rules.getManagementRuleByName(ruleName);
    Action action = new Action();
    action.setActionMbeanName(actionMbeanName);
    rule.setAction(action);
}
View Full Code Here

          }
                if (xPath!=null) {
                    _logger.log(Level.INFO,"sgmt.handleupdatexpath", xPath);
                    object = configContext.exactLookup(xPath);
                    if (object instanceof ManagementRules) {
                        ManagementRules rules = (ManagementRules)object;
                        service.handleRulesUpdate(configContext,configUp);
                    } else if(object instanceof ManagementRule) {
                        ManagementRule rule = (ManagementRule)configContext.exactLookup(xPath);
                        service.handleRuleUpdate(rule,configUp,configContext);
                    } else {
View Full Code Here

               
        try {
            ConfigContext instanceConfigContext = sc.getConfigContext();
            Config instanceConfig = ServerBeansFactory.getConfigBean(
                                                         instanceConfigContext);
            ManagementRules selfManagementRules = instanceConfig.getManagementRules();
      
            if ( selfManagementRules != null ) {
                if ( selfManagementRules.isEnabled() ) {
                    _logger.log(Level.INFO, "smgt.service_enabled");              
                    isServiceEnabled = true;
                   
                    ManagementRule[] rules = selfManagementRules.getManagementRule();
                    if (rules != null) {
                        for (int i = 0; i < rules.length; i++) {
                            ManagementRule rule = rules[i];             
                            String ruleName = rule.getName();
                            String ruleDescription = rule.getDescription();
View Full Code Here

    *                  rules
    */
   void handleEnableService(ConfigContext configCtx) {
       try {
           Config instanceConfig = ServerBeansFactory.getConfigBean(configCtx);
           ManagementRules selfManagementRules = instanceConfig.getManagementRules();
           ManagementRule[] rules = selfManagementRules.getManagementRule();

           for (ManagementRule rule : rules) {
               if (rule.isEnabled()) {
                   addRule(rule, configCtx);
               } else {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.ManagementRules

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.