Package com.sun.enterprise.config.serverbeans

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


    newRule.setEvent(event);
   
    //Action
    if(actionMbeanName!=null)
    {
        Action action = new Action();
        action.setActionMbeanName(actionMbeanName);
        newRule.setAction(action);
       
    }
    // insert new rule to config tree
    ManagementRules rules = (ManagementRules)getBaseConfigBean();
View Full Code Here


            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 (ruleEvent == null) {
                //skip this rule, errorenous event props
                return ;
            }
       
            Action ruleAction = rule.getAction();
            if (ruleAction != null) {
                actionMBeanName = ruleAction.getActionMbeanName();
            }
      
            // pass the invocation to the contained core instance
            rulesManager.addRule(ruleName, description, ruleEvent,
                                 actionMBeanName, logHandback, ctxToUse);
View Full Code Here

   */
   public void handleActionAdd(ManagementRule rule, ConfigContext ctxToUse)
                       throws Exception {
       String ruleName = rule.getName();
       String description = rule.getDescription();
       Action actionToAdd = rule.getAction();
       //Should be the case with validator
       if (actionToAdd!=null) {
           String actionName = actionToAdd.getActionMbeanName();
           //validator?
           if (isServiceEnabled && rule.isEnabled())  {
               if (actionName!=null) {

                   rulesManager.addAction(ruleName,actionName,ctxToUse);
View Full Code Here

TOP

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

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.