Package com.sun.appserv.management.config

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


  {
      if ( checkNotOffline( "ensureDefaultInstance" ) )
      {
          ensureDefaultInstance( getConfigConfig() );
         
          final ConnectorServiceConfig    cs  = getConfigConfig().getConnectorServiceConfig();
         
          final String    value   = cs.getShutdownTimeoutInSeconds();
          assert( value != null );
         
          try
          {
              final String    newValue    = "" + (Integer.parseInt( value ) + 1);
              cs.setShutdownTimeoutInSeconds( newValue );
              final String after  = cs.getShutdownTimeoutInSeconds();
              assert( after.equals( newValue ) );
             
              cs.setShutdownTimeoutInSeconds( "30" );
              cs.setShutdownTimeoutInSeconds( newValue );
          }
          catch( Exception e )
          {
              warning( getRootCauseStackTrace( e ) );
             
View Full Code Here


       
        public static void getConnectorServiceAttributes(HandlerContext handlerCtx) {
       
        String configName = (String) handlerCtx.getInputValue("cName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        ConnectorServiceConfig connService = config.getConnectorServiceConfig();
        if(connService != null){
            String shutdTimeout = connService.getShutdownTimeoutInSeconds();
            handlerCtx.setOutputValue("ShutdownTimeout", shutdTimeout);
        }
    }
View Full Code Here

       
    public static void saveConnectorServiceAttributes(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("cName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        try{
            ConnectorServiceConfig connService = config.getConnectorServiceConfig();
            if(connService != null){
                connService.setShutdownTimeoutInSeconds((String)handlerCtx.getInputValue("ShutdownTimeout"));
            }else{
                connService = config.createConnectorServiceConfig();
                connService.setShutdownTimeoutInSeconds((String)handlerCtx.getInputValue("ShutdownTimeout"));
            }
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

TOP

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

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.