Examples of ModuleMonitoringLevelsConfig


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

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

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

 
 
    public void
  testCreateRemove()
  {
      ModuleMonitoringLevelsConfig    existing    = getModuleMonitoringLevelsConfig();
     
      final MonitoringServiceConfig mon = getConfigConfig().getMonitoringServiceConfig();
      mon.removeModuleMonitoringLevelsConfig();
      final ModuleMonitoringLevelsConfig  newMM   =
          mon.createModuleMonitoringLevelsConfig( null );
     
      newMM.changeAll( "HIGH" );
  }
View Full Code Here

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

  getModuleMonitoringLevelsConfig( final String configName )
  {
    final ConfigConfig  cc  = configName == null ? getConfigConfig() : getConfigConfig( configName );
    assert( cc != null );
   
    final ModuleMonitoringLevelsConfig  mon  =
      cc.getMonitoringServiceConfig().getModuleMonitoringLevelsConfig();
   
    return( mon );
  }
View Full Code Here

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

       
        public static void getMonitoringServiceSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        MonitoringServiceConfig mSConfig = config.getMonitoringServiceConfig();
  ModuleMonitoringLevelsConfig mConfig = mSConfig.getModuleMonitoringLevelsConfig();
        String jvm = mConfig.getJVM();
        String http = mConfig.getHTTPService();
        String transaction = mConfig.getTransactionService();
        String jms = mConfig.getJMSService();
        String orb = mConfig.getORB();
        String web = mConfig.getWebContainer();
        String ejb = mConfig.getEJBContainer();
        String jdbc = mConfig.getJDBCConnectionPool();
        String threadPool = mConfig.getThreadPool();
        Map<String, String> props = mConfig.getProperties();
        handlerCtx.setOutputValue("Jvm", jvm);
        handlerCtx.setOutputValue("Http", http);
        handlerCtx.setOutputValue("Transaction", transaction);
        handlerCtx.setOutputValue("JmsConnector", jms);
        handlerCtx.setOutputValue("Orb", orb);
View Full Code Here

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

       
        public static void getMonitoringServiceDefaultSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        MonitoringServiceConfig mSConfig = config.getMonitoringServiceConfig();
  ModuleMonitoringLevelsConfig mConfig = mSConfig.getModuleMonitoringLevelsConfig();
        String jvm = mConfig.getDefaultValue("JVM");
        String http = mConfig.getDefaultValue("HTTPService");
        String transaction = mConfig.getDefaultValue("TransactionService");
        String jms = mConfig.getDefaultValue("JMSService");
        String orb = mConfig.getDefaultValue("ORB");
        String web = mConfig.getDefaultValue("WebContainer");
        String ejb = mConfig.getDefaultValue("EJBContainer");
        String jdbc = mConfig.getDefaultValue("JDBCConnectionPool");
        String threadPool = mConfig.getDefaultValue("ThreadPool");
        handlerCtx.setOutputValue("Jvm", jvm);
        handlerCtx.setOutputValue("Http", http);
        handlerCtx.setOutputValue("Transaction", transaction);
        handlerCtx.setOutputValue("JmsConnector", jms);
        handlerCtx.setOutputValue("Orb", orb);
View Full Code Here

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

        public static void saveMonitoringServiceSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        Map newProps = (Map)handlerCtx.getInputValue("newProps");
        MonitoringServiceConfig mSConfig = config.getMonitoringServiceConfig();
  ModuleMonitoringLevelsConfig mConfig = mSConfig.getModuleMonitoringLevelsConfig();
       
        AMXUtil.updateProperties(mConfig, newProps, null);
        
        mConfig.setJVM(((String)handlerCtx.getInputValue("Jvm")));
        mConfig.setHTTPService(((String)handlerCtx.getInputValue("Http")));
        mConfig.setTransactionService(((String)handlerCtx.getInputValue("Transaction")));
        //setting JMXService will also affect connector connection pool, connector-service.
        mConfig.setJMSService( (String)handlerCtx.getInputValue("JmsConnector"));
        mConfig.setORB(((String)handlerCtx.getInputValue("Orb")));
        mConfig.setWebContainer(((String)handlerCtx.getInputValue("Web")));
        mConfig.setEJBContainer(((String)handlerCtx.getInputValue("Ejb")));
        mConfig.setJDBCConnectionPool(((String)handlerCtx.getInputValue("Jdbc")));
       
        mConfig.setThreadPool(((String)handlerCtx.getInputValue("ThreadPool")));
       
    }     
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.