Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.ProfTimer.click()


            ProfTimer pt = new ProfTimer(FileBackupManager.class,
                    "FileBackupManager.run");
            try {
                runImpl(when, who, false);
            } catch (Throwable t) {}
            pt.click("Finished backup");
        }
       
        if (loggingEnabled() && when == STARTUP)
            startLogging(workingDirectory.getDirectory());
    }
View Full Code Here


        try {
            result = runImpl(RUNNING, null, true);
        } catch (Throwable t) {
            printError(t);
        }
        pt.click("Finished backup");

        return result;
    }

View Full Code Here

        } catch (IOException ioe) {}
        propertiesFile = prop_file.getPath();
        property_directory = prop_file.getParent() + Settings.sep;
        TemplateLoader.resetTemplateURLs();
        configureSystemPropertiesFromSettings();
        pt.click("Read settings");

        DefectAnalyzer.setDataDirectory(property_directory);
        CmsDefaultConfig.setPersistenceDirectories(
            getCmsPersistenceDirs(prop_file.getParentFile()));
        ExternalResourceManager.getInstance().setDashboardContext(this);
View Full Code Here

        } catch (IOException ioe) {
            default_directory = prop_file.getParentFile().getAbsolutePath();
        }
        ImportDirectoryFactory.getInstance().setBaseDirectory(
            new File(default_directory));
        pt.click("Set default directory");

               
        // configure the writability of the data and lock if applicable
        maybeSetupHistoricalMode();
        maybeEnableReadOnlyMode();
View Full Code Here

               
        // configure the writability of the data and lock if applicable
        maybeSetupHistoricalMode();
        maybeEnableReadOnlyMode();
        pt.click("Checked read only mode");
        if (!Settings.isReadOnly()) {
            tryToLockDataForWriting();
            pt.click("Tried to acquire write lock");
        }
View Full Code Here

        maybeSetupHistoricalMode();
        maybeEnableReadOnlyMode();
        pt.click("Checked read only mode");
        if (!Settings.isReadOnly()) {
            tryToLockDataForWriting();
            pt.click("Tried to acquire write lock");
        }

        // check for a dataset migration import request
        DatasetAutoMigrator.maybeRun(workingDirectory,
            new DatasetAutoMigrator.DialogParentSource() {
View Full Code Here

                public Component getDialogParent() { return hideSS(); }});

        // run the backup process as soon as possible
        fileBackupManager = new FileBackupManager(workingDirectory);
        fileBackupManager.maybeRun(FileBackupManager.STARTUP, null);
        pt.click("Ran file backup");

       
        // start the http server.
        try {
            int httpPort = Settings.getInt(HTTP_PORT_SETTING, DEFAULT_WEB_PORT);
View Full Code Here

                (HTTP_PORT_SETTING, new HttpPortSettingListener());
            ScriptID.setNameResolver(new ScriptNameResolver(webServer));
        } catch (IOException ioe) {
            logErr("Couldn't start web server", ioe);
        }
        pt.click("Started web server");


        // create the data repository.
        data = new DataRepository();
        if ("true".equalsIgnoreCase(Settings.getVal("dataFreezing.disabled")))
View Full Code Here

        // create the data repository.
        data = new DataRepository();
        if ("true".equalsIgnoreCase(Settings.getVal("dataFreezing.disabled")))
            data.disableFreezing();
        data.addGlobalDefineDeclarations("#define AUTO_INDIV_ROOT_TAG t");
        pt.click("Created Data Repository");
        templates = TemplateLoader.loadTemplates(data);
        pt.click("Loaded templates");
        DataVersionChecker.ensureVersionsOrExit();
        aum = new AutoUpdateManager(TemplateLoader.getPackages());
        resources = Resources.getDashBundle("ProcessDashboard");
View Full Code Here

        if ("true".equalsIgnoreCase(Settings.getVal("dataFreezing.disabled")))
            data.disableFreezing();
        data.addGlobalDefineDeclarations("#define AUTO_INDIV_ROOT_TAG t");
        pt.click("Created Data Repository");
        templates = TemplateLoader.loadTemplates(data);
        pt.click("Loaded templates");
        DataVersionChecker.ensureVersionsOrExit();
        aum = new AutoUpdateManager(TemplateLoader.getPackages());
        resources = Resources.getDashBundle("ProcessDashboard");
        InternalSettings.loadLocaleSpecificDefaults(resources);
        FormatUtil.setDateFormats(Settings.getVal("dateFormat"),
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.