Examples of Systemsettings


Examples of org.rhq.core.domain.common.composite.SystemSettings

        assertEquals(unmasked, obfuscated);
    }

    public void testPasswordMaskingDoesNotPersistBack() throws Exception {
        SystemSettings settings = systemManager.getSystemSettings(overlord);
        SystemSettings copy = (SystemSettings) settings.clone();

        systemManager.setAnySystemSettings(settings, false, true);

        settings = systemManager.getSystemSettings(overlord);
View Full Code Here

Examples of org.rhq.core.domain.common.composite.SystemSettings

        assertEquals("Password masking should not modify the database", copy, settings);
    }

    public void testPersistingDeobfuscatedSettingsDoesNotChangeTheValues() throws Exception {
        SystemSettings settings = systemManager.getObfuscatedSystemSettings(true);
        SystemSettings copy = (SystemSettings) settings.clone();

        systemManager.deobfuscate(settings);
        systemManager.setAnySystemSettings(settings, false, true);

        settings = systemManager.getObfuscatedSystemSettings(true);
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.SystemSettings

        SystemSettingsImporter importer = new SystemSettingsImporter(null, systemManager);

        final HashMap<String, String> settings = new HashMap<String, String>();
        settings.put(SystemSetting.BASE_URL.getInternalName(), "url");
        addImportableProps(settings);
        final SystemSettings importedSettings = new SystemSettings(settings);

        context.checking(new Expectations() {
            {
                org.rhq.core.domain.common.composite.SystemSettings expectedImport = org.rhq.core.domain.common
                    .composite.SystemSettings.fromMap(settings);
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.SystemSettings

        String[] importableProps = SystemSettingsImporter.DEFAULT_IMPORTED_PROPERTIES_LIST.split("\\s*,\\s*");

        final HashMap<String, String> settings = new HashMap<String, String>();
        addImportableProps(settings);
        final SystemSettings importedSettings = new SystemSettings(settings);

        final List<String> allowedSettings = new ArrayList<String>();
        for (int i = 0; i < importableProps.length; ++i) {
            if (i % 2 == 0) {
                allowedSettings.add(importableProps[i]);
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.SystemSettings

        SystemSettingsValidator validator = new SystemSettingsValidator(systemManager);
       
        final Properties settings = new Properties();
        settings.put("A", "a");
        settings.put("B", "b");
        SystemSettings importedSettings = new SystemSettings(settings);
       
        context.checking(new Expectations() {
            {
                oneOf(systemManager).validateSystemConfiguration(with(any(Subject.class)), with(settings));
            }
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.SystemSettings

   
    @Override
    public ExportingIterator<SystemSettings> getExportingIterator() {
        Map<String, String> systemProps = systemManager.getObfuscatedSystemSettings(false).toMap();

        SystemSettings settings = new SystemSettings(systemProps);
       
        return new SystemSettingsExportingIterator(settings);
    }
View Full Code Here

Examples of org.voltdb.catalog.Systemsettings

        }
        results.addRow("users", users);

        // Add system setting information also
        // the attribute names follows the above naming rule
        Systemsettings sysSettings = deploy.getSystemsettings().get("systemsettings");
        results.addRow("elasticduration", Integer.toString(sysSettings.getElasticduration()));
        results.addRow("elasticthroughput", Integer.toString(sysSettings.getElasticthroughput()));
        results.addRow("snapshotpriority", Integer.toString(sysSettings.getSnapshotpriority()));
        results.addRow("temptablesmaxsize", Integer.toString(sysSettings.getTemptablemaxsize()));
        results.addRow("querytimeout", Integer.toString(sysSettings.getQuerytimeout()));

        return results;
    }
View Full Code Here

Examples of org.voltdb.catalog.Systemsettings

            "</deployment>";

        final File tmpDepOff = VoltProjectBuilder.writeStringToTempFile(depOff);
        long crcDepOff = CatalogUtil.compileDeployment(catalog, tmpDepOff.getPath(), true, false);
        assertTrue(crcDepOff >= 0);
        Systemsettings sysset = catalog.getClusters().get("cluster").getDeployment().get("deployment").getSystemsettings().get("systemsettings");
        assertEquals(100, sysset.getTemptablemaxsize());

        setUp();
        final File tmpDepOn = VoltProjectBuilder.writeStringToTempFile(depOn);
        long crcDepOn = CatalogUtil.compileDeployment(catalog, tmpDepOn.getPath(), true, false);
        assertTrue(crcDepOn >= 0);
        sysset = catalog.getClusters().get("cluster").getDeployment().get("deployment").getSystemsettings().get("systemsettings");
        assertEquals(200, sysset.getTemptablemaxsize());
    }
View Full Code Here

Examples of org.voltdb.catalog.Systemsettings

            "</deployment>";

        final File tmpDepOff = VoltProjectBuilder.writeStringToTempFile(depOff);
        long crcDepOff = CatalogUtil.compileDeployment(catalog, tmpDepOff.getPath(), true, false);
        assertTrue(crcDepOff >= 0);
        Systemsettings sysset = catalog.getClusters().get("cluster").getDeployment().get("deployment").getSystemsettings().get("systemsettings");
        assertEquals(0, sysset.getQuerytimeout());

        setUp();
        final File tmpDepOn = VoltProjectBuilder.writeStringToTempFile(depOn);
        long crcDepOn = CatalogUtil.compileDeployment(catalog, tmpDepOn.getPath(), true, false);
        assertTrue(crcDepOn >= 0);
        sysset = catalog.getClusters().get("cluster").getDeployment().get("deployment").getSystemsettings().get("systemsettings");
        assertEquals(200, sysset.getQuerytimeout());
    }
View Full Code Here

Examples of org.voltdb.catalog.Systemsettings

    void logSystemSettingFromCatalogContext() {
        if (m_catalogContext == null) {
            return;
        }
        Deployment deploy = m_catalogContext.cluster.getDeployment().get("deployment");
        Systemsettings sysSettings = deploy.getSystemsettings().get("systemsettings");

        if (sysSettings == null) {
            return;
        }

        hostLog.info("Elastic duration set to " + sysSettings.getElasticduration() + " milliseconds");
        hostLog.info("Elastic throughput set to " + sysSettings.getElasticthroughput() + " mb/s");
        hostLog.info("Max temptable size set to " + sysSettings.getTemptablemaxsize() + " mb");
        hostLog.info("Snapshot priority set to " + sysSettings.getSnapshotpriority() + " [0 - 10]");

        if (sysSettings.getQuerytimeout() > 0) {
            hostLog.info("Query timeout set to " + sysSettings.getQuerytimeout() + " milliseconds");
        }
    }
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.