Package com.sun.appserv.management.config

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


        boolean   captureAppDD      = true;
        boolean   verifyConfig      = true;
        String    minLogLevel       = Level.INFO.toString();
        String    maxLongEntries    = "10000";
       
        DiagnosticServiceConfig ds  = config.getDiagnosticServiceConfig();
        if ( ds != null )
        {
            // remember current settings
            computeChecksum   = ds.getComputeChecksum();
            captureInstallLog = ds.getCaptureInstallLog();
            captureSystemInfo = ds.getCaptureSystemInfo();
            captureHADBInfo   = ds.getCaptureHADBInfo();
            captureAppDD      = ds.getCaptureAppDD();
            verifyConfig      = ds.getVerifyConfig();
            minLogLevel       = ds.getMinLogLevel();
            maxLongEntries    = ds.getMaxLogEntries();
           
            config.removeDiagnosticServiceConfig();
            ds  = null;
        }
       
        ds  = config.createDiagnosticServiceConfig();
        config.removeDiagnosticServiceConfig(); ds = null;
       
        // re-create it so one stays around
        ds  = config.createDiagnosticServiceConfig();
        ds.setComputeChecksum( computeChecksum );
        ds.setCaptureInstallLog( captureInstallLog);
        ds.setCaptureSystemInfo( captureSystemInfo );
        ds.setCaptureHADBInfo( captureHADBInfo );
        ds.setCaptureAppDD( captureAppDD );
        ds.setVerifyConfig( verifyConfig );
        ds.setMinLogLevel( minLogLevel );
        ds.setMaxLogEntries( maxLongEntries );
    }
View Full Code Here


    )
       
        public static void getDiagnosticsSettings(HandlerContext handlerCtx) {
       
        String configName = (String) handlerCtx.getInputValue("configName");
        DiagnosticServiceConfig dgService = AMXUtil.getConfig(configName).getDiagnosticServiceConfig();
        boolean checkSum = dgService.getComputeChecksum();
        boolean verifyConfig = dgService.getVerifyConfig();
        boolean installLog = dgService.getCaptureInstallLog();
        boolean sysInfo = dgService.getCaptureSystemInfo();
        boolean appDeplDesc = dgService.getCaptureAppDD();
        String logLevel = dgService.getMinLogLevel();
        String logEntries = dgService.getMaxLogEntries();
        handlerCtx.setOutputValue("CheckSum", checkSum);
        handlerCtx.setOutputValue("VerifyConfig", verifyConfig);
        handlerCtx.setOutputValue("InstallLog", installLog);
        handlerCtx.setOutputValue("SysInfo", sysInfo);
        handlerCtx.setOutputValue("AppDeployDesc", appDeplDesc);
View Full Code Here

       
    public static void saveDiagnosticsSettings(HandlerContext handlerCtx) {
       
        String configName = (String) handlerCtx.getInputValue("configName");
        try{
            DiagnosticServiceConfig dgService = AMXUtil.getConfig(configName).getDiagnosticServiceConfig();
            dgService.setComputeChecksum(((Boolean)handlerCtx.getInputValue("CheckSum")).booleanValue());
            dgService.setVerifyConfig(((Boolean)handlerCtx.getInputValue("VerifyConfig")).booleanValue());
            dgService.setCaptureInstallLog(((Boolean)handlerCtx.getInputValue("InstallLog")).booleanValue());
            dgService.setCaptureSystemInfo(((Boolean)handlerCtx.getInputValue("SysInfo")).booleanValue());
            dgService.setCaptureAppDD(((Boolean)handlerCtx.getInputValue("AppDeployDesc")).booleanValue());
            dgService.setMinLogLevel((String)handlerCtx.getInputValue("LogLevel"));
            dgService.setMaxLogEntries((String)handlerCtx.getInputValue("LogEntries"));
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }
View Full Code Here

TOP

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

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.