Examples of update()


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

                }
            }
        }

        // update the properties file
        serverPropertiesUpdater.update(properties);

        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);

            request.setStatus(ConfigurationUpdateStatus.SUCCESS);
        } 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.
        importer.finishImport();
View Full Code Here

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

            }
        });

        importer.configure(null);

        importer.update(null, importedSettings);

        importer.finishImport();
    }

    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 {
                additionalJavaOptsConfig.clean(configFile);
            }
        } 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,
                resourceContext.getResourceType());

            response.setOverallRequestResult(scriptUpdateResult.getResult());
            response.addPackageResponse(scriptUpdateResult);
        } 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);
                    sample.update();
                        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);
          }
        }
       
        list.update(allServices);
      }
       
      },
      0,
      500);
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);
      bullet.update(dt);
     
      // Si el proyectil sale de la pantalla se elimina
      if ((bullet.getX() < 0) || (bullet.getX() > SCREEN_WIDTH) || (bullet.getY() < 0) || (bullet.getY() > SCREEN_HEIGHT))
        bullets.remove(i);
    }
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);
      enemy.update(dt);
     
      if (enemy.getClass().getSimpleName().equals("ShooterEnemy"))
        ((ShooterEnemy) enemy).shoot(dt);
     
      if (enemy.getClass().getSimpleName().equals("StaticShooterEnemy"))
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.