Examples of update()

Examples of org.rhq.core.util.PropertiesFileUpdate.update()


        // update the properties file

        Properties dbProperties = serverPropertiesUpdater.loadExistingProperties();

        // when upgrading, mark the upgrade by stamping the new version
        if (isUpgrade && !noStamp) {
View Full Code Here

Examples of org.rhq.enterprise.agent.EnvironmentScriptFileUpdate.update()

            // update the env script file so it includes the new settings.
            // note that we require the request to contain ALL settings, not a subset; any settings
            // missing in the request config that currently exist in the script will be removed from the script.
            EnvironmentScriptFileUpdate updater = EnvironmentScriptFileUpdate.create(script.getAbsolutePath());
            updater.update(newSettings, true);

        } catch (Exception e) {
            request.setErrorMessage(new ExceptionPackage(Severity.Severe, e).toString());
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.MetricTemplateImporter.update()

            "The matching metric template should have found the defined measurement definition");

        //this is the "meat" of the test..
        //we call update() twice but only get 1 actual change pour down to database
        //and the importer not choking on this.
        importer.update(null, nonMatching);
        importer.update(def, matching);

        //this should invoke the mocked measurement schedule manager and the expectations should check it gets called
        //correctly by the importer.
View Full Code Here

Examples of org.rhq.enterprise.server.sync.importers.SystemSettingsImporter.update()



        importer.update(null, importedSettings);


    public void testImportConfigurationHonored() throws Exception {
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.helper.AdditionalJavaOpts.update()

            additionalJavaOptsConfig = new AdditionalJavaOpts.LinuxConfiguration();

        try {
            if (additionalJavaOptsContent != null && !additionalJavaOptsContent.trim().isEmpty()) {
                additionalJavaOptsConfig.update(configFile, additionalJavaOptsContent);
            } else {
        } catch (Exception e) {
            LOG.error("Unable to update configuration file with additional JAVA_OPTS set via RHQ.", e);
View Full Code Here

Examples of org.rhq.plugins.jbossas5.deploy.ScriptDeployer.update()

            ScriptDeployer deployer = new ScriptDeployer(jbossHomeDir, systemInfo, new RemoteDownloader(
                resourceContext, true, profileServiceConnection));
            ResourcePackageDetails packageDetails = packages.iterator().next();

            DeployIndividualPackageResponse scriptUpdateResult = deployer.update(packageDetails,

        } catch (Exception e) {
View Full Code Here

Examples of org.rrd4j.core.Sample.update()

            double lastValue = db.getLastDatasourceValue(DATASOURCE_STATE);
            if(!Double.isNaN(lastValue)) {
              Sample sample = db.createSample();
                    sample.setTime(now - 1);
                    sample.setValue(DATASOURCE_STATE, lastValue);
                        logger.debug("Stored '{}' with state '{}' in rrd4j database", name, mapToState(lastValue, item.getName()));
        } catch (IOException e) {
          logger.debug("Error re-storing last value: {}", e.getMessage());
View Full Code Here

Examples of org.rzo.yajsw.util.ObservableList.update()

              if (!ClientMain.hidden.containsObject((ServiceInfo) service))
              allServices.add((ServiceInfo) service);
View Full Code Here

Examples of org.sfsoft.jfighter2dx.characters.Bullet.update()

    Bullet bullet = null;
    for (int i = bullets.size() - 1; i >= 0; i--) {
      bullet = bullets.get(i);
      // Si el proyectil sale de la pantalla se elimina
      if ((bullet.getX() < 0) || (bullet.getX() > SCREEN_WIDTH) || (bullet.getY() < 0) || (bullet.getY() > SCREEN_HEIGHT))
View Full Code Here

Examples of org.sfsoft.jfighter2dx.characters.Enemy.update()

    // Desplaza todos los enemigos por la pantalla
    for (int i = enemies.size - 1; i >= 0; i--) {
      // Desplaza al enemigo por la pantalla
      Enemy enemy = enemies.get(i);
      if (enemy.getClass().getSimpleName().equals("ShooterEnemy"))
        ((ShooterEnemy) enemy).shoot(dt);
      if (enemy.getClass().getSimpleName().equals("StaticShooterEnemy"))
View Full Code Here
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.