Package com.sun.appserv.management.config

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


      if ( ! checkNotOffline( "testRequestProcessing" ) )
      {
          return;
      }
     
    RequestProcessingConfig on = proxy().getRequestProcessingConfig();
    boolean exists = (on != null);
    if (!exists)
    {
      on = proxy().createRequestProcessingConfig(EMPTY_MAP);
      assert on == proxy().getRequestProcessingConfig();
    }
    RequestProcessingConfig rp = proxy().getRequestProcessingConfig();
    assert rp != null;
    if (!exists) { proxy().removeRequestProcessingConfig(); }
  }
View Full Code Here


        @HandlerOutput(name="Buffer", type=String.class)})
       
        public static void getRequestProcessingSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  RequestProcessingConfig rp = config.getHTTPServiceConfig().getRequestProcessingConfig();
        String count = rp.getThreadCount();
        String initial = rp.getInitialThreadCount();
        String increment = rp.getThreadIncrement();
        String timeout = rp.getRequestTimeoutInSeconds();
        String buffer = rp.getHeaderBufferLengthInBytes();
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Initial", initial);
        handlerCtx.setOutputValue("Increment", increment);
        handlerCtx.setOutputValue("Timeout", timeout);
        handlerCtx.setOutputValue("Buffer", buffer);       
View Full Code Here

        @HandlerOutput(name="Buffer", type=String.class)})
       
        public static void getRequestProcessingDefaultSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
  RequestProcessingConfig rp = config.getHTTPServiceConfig().getRequestProcessingConfig();
        String count = rp.getDefaultValue(RequestProcessingConfigKeys.THREAD_COUNT_KEY);
        String initial = rp.getDefaultValue(RequestProcessingConfigKeys.INITIAL_THREAD_COUNT_KEY);
        String increment = rp.getDefaultValue(RequestProcessingConfigKeys.THREAD_INCREMENT_KEY);
        String timeout = rp.getDefaultValue(RequestProcessingConfigKeys.REQUEST_TIMEOUT_IN_SECONDS_KEY);
        String buffer = rp.getDefaultValue(RequestProcessingConfigKeys.HEADER_BUFFER_LENGTH_IN_BYTES_KEY);
        handlerCtx.setOutputValue("Count", count);
        handlerCtx.setOutputValue("Initial", initial);
        handlerCtx.setOutputValue("Increment", increment);
        handlerCtx.setOutputValue("Timeout", timeout);
        handlerCtx.setOutputValue("Buffer", buffer);       
View Full Code Here

       
        public static void saveRequestProcessingSettings(HandlerContext handlerCtx) {
       
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            RequestProcessingConfig rp = config.getHTTPServiceConfig().getRequestProcessingConfig();
            rp.setThreadCount(((String)handlerCtx.getInputValue("Count")));
            rp.setInitialThreadCount(((String)handlerCtx.getInputValue("Initial")));
            rp.setThreadIncrement(((String)handlerCtx.getInputValue("Increment")));
            rp.setRequestTimeoutInSeconds(((String)handlerCtx.getInputValue("Timeout")));
            rp.setHeaderBufferLengthInBytes(((String)handlerCtx.getInputValue("Buffer")));
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }  
View Full Code Here

TOP

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

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.