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

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


    }

    protected void initSessionStats() {
  super.initSessionStats();
  passivateCountStat = new MutableBoundedRangeStatisticImpl(
      new BoundedRangeStatisticImpl("PassiveCount"));
    }
View Full Code Here


    protected void initialize() {
  super.initialize("com.sun.enterprise.admin.monitor.stats.EJBCacheStats");

  cacheHits = new MutableBoundedRangeStatisticImpl(
    new BoundedRangeStatisticImpl("CacheHits"));
  cacheMisses = new MutableBoundedRangeStatisticImpl(
    new BoundedRangeStatisticImpl("CacheMisses"));
  numBeans = new MutableBoundedRangeStatisticImpl(
    new BoundedRangeStatisticImpl("NumBeansInCache",
       "Count", 0, delegate.getMaxCacheSize(), 0));
  expiredStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("NumExpiredSessionsRemoved"));
  passivationErrors = new MutableCountStatisticImpl(
    new CountStatisticImpl("NumPassivationErrors"));
View Full Code Here

  long now = System.currentTimeMillis();

  synchronized (currentSizeLock) {
      currentSize = new MutableBoundedRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, Long.MAX_VALUE,
      Long.MAX_VALUE, 0, "CurrentSize",
      "bytes", "Number of sessions in store", now, now)
      );
  }

  synchronized (activationCountLock) {
      activationCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ActivationCount"));
      activationSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("ActivationSuccessCount"));
      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.BoundedRangeStatisticImpl

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.