Package com.sun.enterprise.admin.monitor.stats

Examples of com.sun.enterprise.admin.monitor.stats.MutableAverageRangeStatisticImpl


      activationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ActivationErrorCount"));
  }

  synchronized (activationSizeLock) {
      activationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationSize",
      "bytes", "Number of bytes activated", now, now)
      );
  }

  synchronized (passivationSizeLock) {
      passivationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationSize",
      "bytes", "Number of bytes passivated", now, now)
      );
  }

  synchronized (passivationCountLock) {
      passivationCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationCount"));
      passivationSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationSuccessCount"));
      passivationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationErrorCount"));
  }

  synchronized (expiredSessionCountLock) {
      expiredSessionCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ExpiredSessionCount"));
  }

  synchronized (activationTimeLock) {
      activationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationTime",
      "millis", "Time spent on activation", now, now)
      );
  }

  synchronized (passivationTimeLock) {
      passivationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationTime",
      "millis", "Time spent on passivation", now, now)
      );
  }
View Full Code Here


    new CountStatisticImpl("CheckpointErrorCount"));
  }

  long now = System.currentTimeMillis();
  synchronized (checkpointTimeLock) {
      checkpointTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointTime",
                                     "millis", "Time spent on checkpointing", 0, 0)
      );
  }

  synchronized (checkpointSizeLock) {
      checkpointSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointSize",
                                     "millis", "Number of bytes checkpointed", 0, 0)
      );
  }
View Full Code Here

     * @param description the description of the stat
     * Note: the lowMark is deliberately set extremely high so that
     * incoming lower values will take effect
     */   
    public static MutableAverageRangeStatisticImpl createDefaultStat(String name, String unit, String description) {
        return new MutableAverageRangeStatisticImpl(new BoundedRangeStatisticImpl(
             0L, 0L, DEFAULT_MAX_BOUND,
             0L, 0L, name,
             unit, description, System.currentTimeMillis(),
             System.currentTimeMillis()));       
    }   
View Full Code Here

      activationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ActivationErrorCount"));
  }

  synchronized (activationSizeLock) {
      activationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationSize",
      "bytes", "Number of bytes activated", now, now)
      );
  }

  synchronized (passivationSizeLock) {
      passivationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationSize",
      "bytes", "Number of bytes passivated", now, now)
      );
  }

  synchronized (passivationCountLock) {
      passivationCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationCount"));
      passivationSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationSuccessCount"));
      passivationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationErrorCount"));
  }

  synchronized (expiredSessionCountLock) {
      expiredSessionCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ExpiredSessionCount"));
  }

  synchronized (activationTimeLock) {
      activationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationTime",
      "millis", "Time spent on activation", now, now)
      );
  }

  synchronized (passivationTimeLock) {
      passivationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationTime",
      "millis", "Time spent on passivation", now, now)
      );
  }
View Full Code Here

      checkpointErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointErrorCount"));
  }

  synchronized (checkpointTimeLock) {
      checkpointTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointTime",
                                     "millis", "Time spent on checkpointing", 0, 0)
      );
  }

  synchronized (checkpointSizeLock) {
      checkpointSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointSize",
                                     "millis", "Number of bytes checkpointed", 0, 0)
      );
  }
View Full Code Here

    new CountStatisticImpl("CheckpointErrorCount"));
  }

  long now = System.currentTimeMillis();
  synchronized (checkpointTimeLock) {
      checkpointTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointTime",
                                     "millis", "Time spent on checkpointing", 0, 0)
      );
  }

  synchronized (checkpointSizeLock) {
      checkpointSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
                                     0, 0, "CheckpointSize",
                                     "millis", "Number of bytes checkpointed", 0, 0)
      );
  }
View Full Code Here

      activationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ActivationErrorCount"));
  }

  synchronized (activationSizeLock) {
      activationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationSize",
      "bytes", "Number of bytes activated", now, now)
      );
  }

  synchronized (passivationSizeLock) {
      passivationSize = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationSize",
      "bytes", "Number of bytes passivated", now, now)
      );
  }

  synchronized (passivationCountLock) {
      passivationCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationCount"));
      passivationSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationSuccessCount"));
      passivationErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("PassivationErrorCount"));
  }

  synchronized (expiredSessionCountLock) {
      expiredSessionCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ExpiredSessionCount"));
  }

  synchronized (activationTimeLock) {
      activationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "ActivationTime",
      "millis", "Time spent on activation", now, now)
      );
  }

  synchronized (passivationTimeLock) {
      passivationTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "PassivationTime",
      "millis", "Time spent on passivation", now, now)
      );
  }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.monitor.stats.MutableAverageRangeStatisticImpl

Copyright © 2018 www.massapicom. 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.