Examples of ConfigConfig


Examples of com.sun.appserv.management.config.ConfigConfig

        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName"); //NOI18N
            Boolean fromStep2 = (Boolean) handlerCtx.getInputValue("FromStep2"); //NOI18N
            Boolean supportCluster = (Boolean) handlerCtx.getInputValue("SupportCluster"); //NOI18N
            if ((fromStep2 == null) || (! fromStep2)){
                ConfigConfig config = AMXUtil.getConfig(configName);
                Map defaultRuleMap = AMXUtil.getDomainConfig().getDefaultAttributeValues(ManagementRuleConfig.J2EE_TYPE);        
                Map defaultEventMap = AMXUtil.getDomainConfig().getDefaultAttributeValues(EventConfig.J2EE_TYPE);        
                Map wizardMgmtRuleMap = new HashMap();
                Map wizardRuleTypesMap = new HashMap();
                Object statusVal = defaultRuleMap.get("enabled"); //NOI18N
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

    output={
        @HandlerOutput(name="AllRules",          type=Boolean.class) })
       
        public static void getMgmtRuleValues(HandlerContext handlerCtx) {
        try{
            ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
            boolean allRules = config.getManagementRulesConfig().getEnabled();
            handlerCtx.setOutputValue("AllRules", allRules); //NOI18N
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

        @HandlerInput(name="ConfigName",         type=String.class),
        @HandlerInput(name="AllRules",          type=Boolean.class) })
       
        public static void saveMgmtRuleValues(HandlerContext handlerCtx) {
        try{
            ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
            config.getManagementRulesConfig().setEnabled(((Boolean)handlerCtx.getInputValue("AllRules")).booleanValue());
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

        @HandlerOutput(name="Action",             type=String.class) })
        public static void getMonitorEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName");
            String ruleName = (String) handlerCtx.getInputValue("RuleName");
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
            Map<String,String> propMap = mgRuleConfig.getEventConfig().getProperties();
            SelectItem[] numtypes = ConfigurationHandlers.getOptions(numTypes);
            String monitorType = propMap.get("monitortype");
           
            handlerCtx.setOutputValue("ObservedMbean", propMap.get("observedobject"));
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void getTimerEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName"); //NOI18N
            String ruleName = (String) handlerCtx.getInputValue("RuleName"); //NOI18N
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
            Map<String,String> propMap = mgRuleConfig.getEventConfig().getProperties();
            handlerCtx.setOutputValue("DateString", propMap.get("datestring")); //NOI18N
            handlerCtx.setOutputValue("Pattern", propMap.get("pattern")); //NOI18N
            handlerCtx.setOutputValue("Period", propMap.get("period")); //NOI18N
            handlerCtx.setOutputValue("NoOccurences", propMap.get("numberofoccurrences")); //NOI18N
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void getLogEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName"); //NOI18N
            String ruleName = (String) handlerCtx.getInputValue("RuleName"); //NOI18N
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
            Map<String,String> propMap = mgRuleConfig.getEventConfig().getProperties();
            handlerCtx.setOutputValue("Level", propMap.get("level")); //NOI18N
            String[] loggers = getLoggerNames();
            SelectItem[] options = ConfigurationHandlers.getOptions(loggers);
            handlerCtx.setOutputValue("LoggerList", options);
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void getClusterEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName"); //NOI18N
            String ruleName = (String) handlerCtx.getInputValue("RuleName"); //NOI18N
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
            Map<String,String> propMap = mgRuleConfig.getEventConfig().getProperties();
            handlerCtx.setOutputValue("Event", propMap.get("name")); //NOI18N
            handlerCtx.setOutputValue("ServerName", propMap.get("servername")); //NOI18N
            handlerCtx.setOutputValue("ServerNamesList", ConfigurationHandlers.getOptions(getTargetNames())); //NOI18N
            if(mgRuleConfig.getActionConfig() != null){
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void saveManagementRuleValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName");
            String ruleName = (String) handlerCtx.getInputValue("RuleName");
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
           
            mgRuleConfig.setEnabled(((Boolean)handlerCtx.getInputValue("Status")).booleanValue());
            mgRuleConfig.setDescription((String)handlerCtx.getInputValue("RuleDesc"));
            mgRuleConfig.getEventConfig().setRecordEvent(((Boolean)handlerCtx.getInputValue("RecordEvent")).booleanValue());
            mgRuleConfig.getEventConfig().setLevel((String)handlerCtx.getInputValue("LogLevel"));
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void saveMonitorEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName");
            String ruleName = (String) handlerCtx.getInputValue("RuleName");
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
           
            mgRuleConfig.setEnabled(((Boolean)handlerCtx.getInputValue("Status")).booleanValue());
            mgRuleConfig.setDescription((String)handlerCtx.getInputValue("RuleDesc"));
            mgRuleConfig.getEventConfig().setRecordEvent(((Boolean)handlerCtx.getInputValue("RecordEvent")).booleanValue());
            mgRuleConfig.getEventConfig().setLevel((String)handlerCtx.getInputValue("LogLevel"));
View Full Code Here

Examples of com.sun.appserv.management.config.ConfigConfig

       
        public static void saveNotifEventValues(HandlerContext handlerCtx) {
        try{
            String configName = (String) handlerCtx.getInputValue("ConfigName"); //NOI18N
            String ruleName = (String) handlerCtx.getInputValue("RuleName"); //NOI18N
            ConfigConfig config = AMXUtil.getConfig(configName);
            ManagementRuleConfig mgRuleConfig = config.getManagementRulesConfig().getManagementRuleConfigMap().get(ruleName);
           
            String srcGroup = (String)handlerCtx.getInputValue("SrcGroup"); //NOI18N
            String notifType = (String)handlerCtx.getInputValue("NotifType"); //NOI18N
            String mbeanProp = null;
            if(srcGroup.equals("1")){ //NOI18N
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.