Examples of KeepAliveConfig


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

      if ( ! checkNotOffline( "testKeepAlive" ) )
      {
          return;
      }
     
    KeepAliveConfig on = proxy().getKeepAliveConfig();
    boolean exists = (on != null);
    if (!exists)
    {
      on = proxy().createKeepAliveConfig(EMPTY_MAP);
      assert on == proxy().getKeepAliveConfig();
    }
    KeepAliveConfig rp = proxy().getKeepAliveConfig();
    assert rp != null;
    if (!exists) { proxy().removeKeepAliveConfig(); }
  }
View Full Code Here

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

        @HandlerOutput(name="Timeout",       type=String.class)})
       
        public static void getKeepAliveSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  KeepAliveConfig rp = config.getHTTPServiceConfig().getKeepAliveConfig();
        String count = rp.getThreadCount();
        String connections = rp.getMaxConnections();
        String timeout = rp.getTimeoutInSeconds();
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Connections", connections);
        handlerCtx.setOutputValue("Timeout", timeout);  
       
    }
View Full Code Here

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

        @HandlerOutput(name="Timeout",       type=String.class)})
       
        public static void getKeepAliveDefaultSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  KeepAliveConfig rp = config.getHTTPServiceConfig().getKeepAliveConfig();
        String count = rp.getDefaultValue(KeepAliveConfigKeys.THREAD_COUNT_KEY );
        String connections = rp.getDefaultValue(KeepAliveConfigKeys.MAX_CONNECTIONS_KEY );
        String timeout = rp.getDefaultValue(KeepAliveConfigKeys.TIMEOUT_IN_SECONDS_KEY );
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Connections", connections);
        handlerCtx.setOutputValue("Timeout", timeout);  
       
    }
View Full Code Here

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

        @HandlerInput(name="Timeout",       type=String.class)})
       
        public static void saveKeepAliveSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  KeepAliveConfig rp = config.getHTTPServiceConfig().getKeepAliveConfig();
        rp.setThreadCount(((String)handlerCtx.getInputValue("Count")));
        rp.setMaxConnections(((String)handlerCtx.getInputValue("Connections")));
        rp.setTimeoutInSeconds(((String)handlerCtx.getInputValue("Timeout")));
       
    }
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.