Examples of Snapshot


Examples of ch.hortis.sonar.model.Snapshot

  private Map<MeasureKey, MetricMeasure> measuresByKey;
  private List<RuleFailure> ruleFailures;

  protected Module(List<File> files) {
    // for tests
    snapshot = new Snapshot();
    measuresByKey = new HashMap<MeasureKey, MetricMeasure>();
    ruleFailures = new ArrayList<RuleFailure>();
    snapshot.setFiles(files);
  }
View Full Code Here

Examples of com.alexecollins.vbox.core.Snapshot

  public Void call() throws Exception {

    verifySignature();

    final Snapshot snapshot = Snapshot.POST_CREATION;
    if (box.exists()) {

      box.powerOff();

      if (box.getSnapshots().contains(snapshot)) {
View Full Code Here

Examples of com.amazonaws.services.ec2.model.Snapshot

            log.info("SnapshotId = " + createSnapshotResult.getSnapshot().getSnapshotId());

            DescribeSnapshotsRequest describeSnapshotsRequest = new DescribeSnapshotsRequest().
                    withSnapshotIds(createSnapshotResult.getSnapshot().getSnapshotId());

            Snapshot snapshot;

            while (true)
            {
                log.info("Sleeping for " + snapshotSleep.get() + " ms");
                Thread.sleep(snapshotSleep.get());
View Full Code Here

Examples of com.avaje.ebeaninternal.server.query.CQueryPlanStats.Snapshot

  }
 
  public List<MetaQueryPlanStatistic> collectQueryPlanStatisticsInternal(boolean reset, boolean collectAll) {
    List<MetaQueryPlanStatistic> list = new ArrayList<MetaQueryPlanStatistic>(queryPlanCache.size());
    for (CQueryPlan queryPlan :  queryPlanCache.values()) {
      Snapshot snapshot = queryPlan.getSnapshot(reset);
      if (collectAll || snapshot.getExecutionCount() > 0) {
        list.add(snapshot);
      }
    }
    return list;
  }
View Full Code Here

Examples of com.cloud.storage.Snapshot

            VMInstanceVO vm = ApiDBUtils.findVMInstanceById(job.getInstanceId());
            if (vm != null) {
                jobInstanceId = vm.getUuid();
            }
        } else if (job.getInstanceType() == AsyncJob.Type.Snapshot) {
            Snapshot snapshot = ApiDBUtils.findSnapshotById(job.getInstanceId());
            if (snapshot != null) {
                jobInstanceId = snapshot.getUuid();
            }
        } else if (job.getInstanceType() == AsyncJob.Type.Host) {
            Host host = ApiDBUtils.findHostById(job.getInstanceId());
            if (host != null) {
                jobInstanceId = host.getUuid();
View Full Code Here

Examples of com.codahale.metrics.Snapshot

      LOGGER.warn("Unable to report to InfluxDB. Discarding data.", e);
    }
  }

  private void reportTimer(String name, Timer timer, long timestamp) {
    final Snapshot snapshot = timer.getSnapshot();
    Object[] p = pointsTimer[0];
    p[0] = timestamp;
    p[1] = snapshot.size();
    p[2] = convertDuration(snapshot.getMin());
    p[3] = convertDuration(snapshot.getMax());
    p[4] = convertDuration(snapshot.getMean());
    p[5] = convertDuration(snapshot.getStdDev());
    p[6] = convertDuration(snapshot.getMedian());
    p[7] = convertDuration(snapshot.get75thPercentile());
    p[8] = convertDuration(snapshot.get95thPercentile());
    p[9] = convertDuration(snapshot.get99thPercentile());
    p[10] = convertDuration(snapshot.get999thPercentile());
    p[11] = convertRate(timer.getOneMinuteRate());
    p[12] = convertRate(timer.getFiveMinuteRate());
    p[13] = convertRate(timer.getFifteenMinuteRate());
    p[14] = convertRate(timer.getMeanRate());
    assert (p.length == COLUMNS_TIMER.length);
View Full Code Here

Examples of com.espertech.esper.metrics.codahale_metrics.metrics.stats.Snapshot

        final double[] values = histogram.getSnapshot().getValues();
        final double[] converted = new double[values.length];
        for (int i = 0; i < values.length; i++) {
            converted[i] = convertFromNS(values[i]);
        }
        return new Snapshot(converted);
    }
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.api.Snapshot

  }

  public Snapshot createServerSnapshot() {
    CServerSnapshotCreate create = new CServerSnapshotCreate();
    if (query.doCommand(create)) {
      return new Snapshot(create.getRaw());
    }
    return null;
  }
View Full Code Here

Examples of com.jcloisterzone.game.Snapshot

    }

    private void autosave() {
        DebugConfig debugConfig = game.getConfig().getDebug();
        if (debugConfig != null && debugConfig.getAutosave() != null && debugConfig.getAutosave().length() > 0) {
            Snapshot snapshot = new Snapshot(game);
            if ("plain".equals(debugConfig.getSave_format())) {
                snapshot.setGzipOutput(false);
            }
            try {
                snapshot.save(new FileOutputStream(debugConfig.getAutosave()));
            } catch (TransformerException | IOException e) {
                logger.error("Auto save before ranking failed.", e);
            }
        }
    }
View Full Code Here

Examples of com.onpositive.gae.profiler.core.Snapshot

      IFileEditorInput fl = (IFileEditorInput) input;
      try {
        IFile file = fl.getFile();
        InputStream stream = file.getContents(true);
        try {
          data = new Snapshot(stream);
          fact = new ViewerConfigurationFactories(data);
        } catch (Exception e) {
          Activator.getDefault().log(e);
        } finally {
          try {
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.