Examples of statistics()


Examples of org.modeshape.jcr.JcrRepository.RunningState.statistics()

        try {
            RunningState running = repository.runningState();
            long lifetime = Math.abs(System.nanoTime() - this.nanosCreated);
            Map<String, String> payload = Collections.singletonMap("userId", getUserID());
            running.statistics().recordDuration(DurationMetric.SESSION_LIFETIME, lifetime, TimeUnit.NANOSECONDS, payload);
            running.statistics().decrement(ValueMetric.SESSION_COUNT);
            running.removeSession(this);
        } catch (IllegalStateException e) {
            // The repository has been shutdown
        } finally {
            if (bufferMgr != null) {
View Full Code Here

Examples of org.sonatype.nexus.bundle.launcher.NexusBundle.statistics()

    final boolean alreadyRunning = nexusToBeStarted.isRunning();

    startNexus(nexusToBeStarted);

    if (!alreadyRunning) {
      final BundleStatistics statistics = nexusToBeStarted.statistics();
      testIndex().recordInfo("preparation time", statistics.preparationTime().asSeconds().toString());
      testIndex().recordInfo(
          "startup time",
          String.format(
              "%s (boot time %s)",
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.