Examples of ModuleLogLevelsConfig


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

  }
 
    public void
  testGetAll()
  {
    final ModuleLogLevelsConfig  config  = getModuleLogLevelsConfig();
   
    final Map<String,String>  all  = config.getAllLevels();
    assert( all.size() == 24 );
  }
View Full Code Here

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

  }
 
    public void
  testChangeAll()
  {
    final ModuleLogLevelsConfig  config  = getModuleLogLevelsConfig();
   
    config.changeAll( LogLevelValues.FINE );
    // verify that they were all changed
     Map<String,String>  all  = config.getAllLevels();
    for( final String value : all.values() )
    {
        assert( value.equals( LogLevelValues.FINE ) );
    }
   
    config.changeAll( LogLevelValues.INFO );
    // verify that they were all changed
    all  = config.getAllLevels();
    for( final String value : all.values() )
    {
        assert( value.equals( LogLevelValues.INFO ) );
    }
  }
View Full Code Here

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

    output={
        @HandlerOutput(name="PersistenceLogLevel", type=String.class)})
        public static void getPersistenceLogLevel(HandlerContext handlerCtx) {   
        String value = null;
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
        try {
            value = mConfig.getPropertyValue(PERSISTENCE_MODULE_PROPERTY);
        }catch (Exception ex){
            //ignore exception if the property doesn't exist
        }       
        if(value == null)
            value = mConfig.getJDO();
        handlerCtx.setOutputValue("PersistenceLogLevel", value);
     }
View Full Code Here

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

        @HandlerInput(name="Value",  type=String.class)})
        public static void setPersistenceLogLevel(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        String value = (String)handlerCtx.getInputValue("Value");
        ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
       
        mConfig.setPropertyValue(PERSISTENCE_MODULE_PROPERTY, value);
        mConfig.setJDO(value);
        mConfig.setCMP(value);
    }
View Full Code Here

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

        @HandlerInput(name="ConfigName", type=String.class, required=true)},
    output={
        @HandlerOutput(name="Properties", type=Map.class)})
        public static void getModuleLogLevelProperties(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
        Map newMap = AMXUtil.getNonSkipPropertiesMap(mConfig, skipLogModulePropsList);
        handlerCtx.setOutputValue("Properties", newMap);
    }    
View Full Code Here

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

        @HandlerOutput(name="Gms", type=String.class),
        @HandlerOutput(name="Jaxws", type=String.class)})
        public static void getDefaultServerModuleLogLevels(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
         ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
        String admin = mConfig.getDefaultValue("Admin");
        String ejb = mConfig.getDefaultValue("EJBContainer");
        String classLoader = mConfig.getDefaultValue("Classloader");
        String configuration = mConfig.getDefaultValue("Configuration");
        String connector = mConfig.getDefaultValue("Connector");
        String corba = mConfig.getDefaultValue("CORBA");
        String deployment = mConfig.getDefaultValue("Deployment");
        String javamail = mConfig.getDefaultValue("Javamail");
        String jaxr = mConfig.getDefaultValue("JAXR");
        String jaxrpc = mConfig.getDefaultValue("JAXRPC");
        String jms = mConfig.getDefaultValue("JMS");
        String jta = mConfig.getDefaultValue("JTA");
        String jts = mConfig.getDefaultValue("JTS");
        String mdb = mConfig.getDefaultValue("MDBContainer");
        String naming = mConfig.getDefaultValue("Naming");
        String root = mConfig.getDefaultValue("Root");
        String saaj = mConfig.getDefaultValue("SAAJ");
        String security = mConfig.getDefaultValue("Security");
        String selfManagement = mConfig.getDefaultValue("SelfManagement");
        String server = mConfig.getDefaultValue("Server");
        String util = mConfig.getDefaultValue("Util");
        String verifier = mConfig.getDefaultValue("Verifier");
        String web = mConfig.getDefaultValue("WebContainer");
        handlerCtx.setOutputValue("Admin", admin);
        handlerCtx.setOutputValue("Classloader", classLoader);
        handlerCtx.setOutputValue("Configuration", configuration);
        handlerCtx.setOutputValue("Connector", connector);
        handlerCtx.setOutputValue("Corba", corba);
        handlerCtx.setOutputValue("Deployment", deployment);
        handlerCtx.setOutputValue("Javamail", javamail);
        handlerCtx.setOutputValue("Jaxr", jaxr);
        handlerCtx.setOutputValue("Jaxrpc", jaxrpc);
        handlerCtx.setOutputValue("Jms", jms);
        handlerCtx.setOutputValue("Jta", jta);
        handlerCtx.setOutputValue("Jts", jts);
        handlerCtx.setOutputValue("MDB", mdb);
        handlerCtx.setOutputValue("Naming", naming);       
        handlerCtx.setOutputValue("EJB", ejb);      
        handlerCtx.setOutputValue("Root", root);      
        handlerCtx.setOutputValue("Saaj", saaj);      
        handlerCtx.setOutputValue("Security", security);      
        handlerCtx.setOutputValue("SelfManagement", selfManagement);      
        handlerCtx.setOutputValue("Server", server);      
        handlerCtx.setOutputValue("Util", util);      
        handlerCtx.setOutputValue("Verifier", verifier);      
        handlerCtx.setOutputValue("WEB", web);    
        handlerCtx.setOutputValue("PersistenceLogLevel", admin);
        handlerCtx.setOutputValue("Jbi", "INFO");
        handlerCtx.setOutputValue("Jaxws", "INFO");
        if (AMXUtil.isEE()){
            handlerCtx.setOutputValue( "NodeAgent", mConfig.getDefaultValue("NodeAgent"));
            handlerCtx.setOutputValue( "Synchronization", mConfig.getDefaultValue("Synchronization"));
            handlerCtx.setOutputValue( "Gms", mConfig.getDefaultValue("GroupManagementService"));
        }
       
    }   
View Full Code Here

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

        @HandlerOutput(name="Jaxws", type=String.class)})
       
        public static void getServerModuleLogLevels(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
        String admin = mConfig.getAdmin();
        String ejb = mConfig.getEJBContainer();
        String classLoader = mConfig.getClassloader();
        String configuration = mConfig.getConfiguration();
        String connector = mConfig.getConnector();
        String corba = mConfig.getCORBA();
        String deployment = mConfig.getDeployment();
        String javamail = mConfig.getJavamail();
        String jaxr = mConfig.getJAXR();
        String jaxrpc = mConfig.getJAXRPC();
        String jms = mConfig.getJMS();
        String jta = mConfig.getJTA();
        String jts = mConfig.getJTS();
        String mdb = mConfig.getMDBContainer();
        String naming = mConfig.getNaming();
        String root = mConfig.getRoot();
        String saaj = mConfig.getSAAJ();
        String security = mConfig.getSecurity();
        String selfManagement = mConfig.getSelfManagement();
        String server = mConfig.getServer();
        String util = mConfig.getUtil();
        String verifier = mConfig.getVerifier();
        String web = mConfig.getWebContainer();
        String jaxws = "INFO";
        String jbi = "INFO";
       
        if (mConfig.existsProperty(JAXWS_MODULE_PROPERTY))
            jaxws = mConfig.getPropertyValue(JAXWS_MODULE_PROPERTY);
       
        if (mConfig.existsProperty(JBI_MODULE_PROPERTY))
            jbi = mConfig.getPropertyValue(JBI_MODULE_PROPERTY);
       
        handlerCtx.setOutputValue("Admin", admin);
        handlerCtx.setOutputValue("Classloader", classLoader);
        handlerCtx.setOutputValue("Configuration", configuration);
        handlerCtx.setOutputValue("Connector", connector);
        handlerCtx.setOutputValue("Corba", corba);
        handlerCtx.setOutputValue("Deployment", deployment);
        handlerCtx.setOutputValue("Javamail", javamail);
        handlerCtx.setOutputValue("Jaxr", jaxr);
        handlerCtx.setOutputValue("Jaxrpc", jaxrpc);
        handlerCtx.setOutputValue("Jms", jms);
        handlerCtx.setOutputValue("Jta", jta);
        handlerCtx.setOutputValue("Jts", jts);
        handlerCtx.setOutputValue("MDB", mdb);
        handlerCtx.setOutputValue("Naming", naming);       
        handlerCtx.setOutputValue("EJB", ejb);      
        handlerCtx.setOutputValue("Root", root);      
        handlerCtx.setOutputValue("Saaj", saaj);      
        handlerCtx.setOutputValue("Security", security);      
        handlerCtx.setOutputValue("SelfManagement", selfManagement);      
        handlerCtx.setOutputValue("Server", server);      
        handlerCtx.setOutputValue("Util", util);      
        handlerCtx.setOutputValue("Verifier", verifier);      
        handlerCtx.setOutputValue("WEB", web);
        handlerCtx.setOutputValue("Jbi", jbi);
        handlerCtx.setOutputValue("Jaxws", jaxws);
        if (AMXUtil.isEE()){
            handlerCtx.setOutputValue( "NodeAgent", mConfig.getNodeAgent());
            handlerCtx.setOutputValue( "Synchronization",mConfig.getSynchronization());
            handlerCtx.setOutputValue( "Gms", mConfig.getGroupManagementService());
        }
       
    }   
View Full Code Here

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

        @HandlerInput(name="Gms", type=String.class),
        @HandlerInput(name="newProps", type=Map.class)})
        public static void saveServerModuleLogLevels(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        ModuleLogLevelsConfig mConfig = config.getLogServiceConfig().getModuleLogLevelsConfig();
       
        Map newProps = (Map)handlerCtx.getInputValue("newProps");
        AMXUtil.updateProperties(mConfig, newProps, skipLogModulePropsList);
       
        mConfig.setAdmin((String)handlerCtx.getInputValue("Admin"));
        mConfig.setEJBContainer((String)handlerCtx.getInputValue("EJB"));
        mConfig.setClassloader((String)handlerCtx.getInputValue("Classloader"));
        mConfig.setConfiguration((String)handlerCtx.getInputValue("Configuration"));
        mConfig.setConnector((String)handlerCtx.getInputValue("Connector"));
        mConfig.setCORBA((String)handlerCtx.getInputValue("Corba"));
        mConfig.setDeployment((String)handlerCtx.getInputValue("Deployment"));
        mConfig.setJavamail((String)handlerCtx.getInputValue("Javamail"));
        mConfig.setJAXR((String)handlerCtx.getInputValue("Jaxr"));
        mConfig.setJAXRPC((String)handlerCtx.getInputValue("Jaxrpc"));
        mConfig.setJMS((String)handlerCtx.getInputValue("Jms"));
        mConfig.setJTA((String)handlerCtx.getInputValue("Jta"));
        mConfig.setJTS((String)handlerCtx.getInputValue("Jts"));
        mConfig.setMDBContainer((String)handlerCtx.getInputValue("MDB"));
        mConfig.setNaming((String)handlerCtx.getInputValue("Naming"));
        mConfig.setRoot((String)handlerCtx.getInputValue("Root"));
        mConfig.setSAAJ((String)handlerCtx.getInputValue("Saaj"));
        mConfig.setSecurity((String)handlerCtx.getInputValue("Security"));
        mConfig.setSelfManagement((String)handlerCtx.getInputValue("SelfManagement"));
        mConfig.setServer((String)handlerCtx.getInputValue("Server"));
        mConfig.setUtil((String)handlerCtx.getInputValue("Util"));
        mConfig.setVerifier((String)handlerCtx.getInputValue("Verifier"));
        mConfig.setWebContainer((String)handlerCtx.getInputValue("WEB"));
        if (AMXUtil.isEE()){
            mConfig.setNodeAgent((String)handlerCtx.getInputValue("NodeAgent"));
            mConfig.setSynchronization((String)handlerCtx.getInputValue("Synchronization"));
            mConfig.setGroupManagementService((String)handlerCtx.getInputValue("Gms"));
        }
       
        if (mConfig.existsProperty(JBI_MODULE_PROPERTY))
            mConfig.setPropertyValue(JBI_MODULE_PROPERTY, (String)handlerCtx.getInputValue("Jbi"));
        else
            mConfig.createProperty(JBI_MODULE_PROPERTY, (String)handlerCtx.getInputValue("Jbi"));
       
        if (mConfig.existsProperty(JAXWS_MODULE_PROPERTY))
            mConfig.setPropertyValue(JAXWS_MODULE_PROPERTY, (String)handlerCtx.getInputValue("Jaxws"));
        else
            mConfig.createProperty(JAXWS_MODULE_PROPERTY, (String)handlerCtx.getInputValue("Jaxws"));
       
    }       
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.