Package com.sun.appserv.management.config

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


      if ( ! checkNotOffline( "testConnectionPool" ) )
      {
          return;
      }
     
    ConnectionPoolConfig on = proxy().getConnectionPoolConfig();
    boolean exists = (on != null);
    if (!exists)
    {
      on = proxy().createConnectionPoolConfig(EMPTY_MAP);
      assert on == proxy().getConnectionPoolConfig();
    }
    ConnectionPoolConfig rp = proxy().getConnectionPoolConfig();
    assert rp != null;
    if (!exists) { proxy().removeConnectionPoolConfig(); }
  }
View Full Code Here


        @HandlerOutput(name="Send",       type=String.class)})
       
        public static void getConnectionPoolSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  ConnectionPoolConfig cp = config.getHTTPServiceConfig().getConnectionPoolConfig();
        String count = cp.getMaxPendingCount();
        String queue = cp.getQueueSizeInBytes();
        String receive = cp.getReceiveBufferSizeInBytes();
        String send = cp.getSendBufferSizeInBytes();
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Queue", queue);
        handlerCtx.setOutputValue("Receive", receive);  
        handlerCtx.setOutputValue("Send", send);  
       
View Full Code Here

        @HandlerOutput(name="Send",       type=String.class)})
       
        public static void getConnectionPoolDefaultSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  ConnectionPoolConfig cp = config.getHTTPServiceConfig().getConnectionPoolConfig();
        String count = cp.getDefaultValue(ConnectionPoolConfigKeys.MAX_PENDING_COUNT_KEY);
        String queue = cp.getDefaultValue(ConnectionPoolConfigKeys.QUEUE_SIZE_IN_BYTES_KEY);
        String receive = cp.getDefaultValue(ConnectionPoolConfigKeys.RECEIVE_BUFFER_SIZE_IN_BYTES_KEY);
        String send = cp.getDefaultValue(ConnectionPoolConfigKeys.SEND_BUFFER_SIZE_IN_BYTES_KEY);
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Queue", queue);
        handlerCtx.setOutputValue("Receive", receive);  
        handlerCtx.setOutputValue("Send", send);  
       
View Full Code Here

       
        public static void saveConnectionPoolSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            ConnectionPoolConfig cp = config.getHTTPServiceConfig().getConnectionPoolConfig();
            cp.setMaxPendingCount((String)handlerCtx.getInputValue("Count"));
            cp.setQueueSizeInBytes((String)handlerCtx.getInputValue("Queue"));
            cp.setReceiveBufferSizeInBytes((String)handlerCtx.getInputValue("Receive"));
            cp.setSendBufferSizeInBytes((String)handlerCtx.getInputValue("Send"));
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }    
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.ConnectionPoolConfig

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.