Examples of BoundedRangeStatisticImpl


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

        final long time = System.currentTimeMillis();

        totalConnections =
            new MutableBoundedRangeStatisticImpl(
                new BoundedRangeStatisticImpl( 0, 0, 0,
                    java.lang.Long.MAX_VALUE, 0,
                    "TotalConnections", "count",
                    connection.getAttribute( stringTotalConnections ).
                    getAttributeInfo( ).getDescription(),
                    time, time ));
View Full Code Here

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

     * @see #reset
     * @see #setCount
     * @return      instance of BoundedRangeStatistic
     */
    public Statistic unmodifiableView() {
        return ( new BoundedRangeStatisticImpl(
            this.current,               // this is the actual changing statistic
            this.highWaterMark,         // highWaterMark may change per current
            this.lowWaterMark,          // lowWaterMark may change per current
            initial.getUpperBound(),    // upperBound is not designed to change
            initial.getLowerBound(),    // lowerBound is not designed to change
View Full Code Here

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

     * @see #reset
     * @see #setCount
     * @return      instance of BoundedRangeStatistic
     */
    public Statistic unmodifiableView() {
        return ( new BoundedRangeStatisticImpl(
            this.current,               // this is the actual changing statistic
            this.highWaterMark,         // highWaterMark may change per current
            this.lowWaterMark,          // lowWaterMark may change per current
            initial.getUpperBound(),    // upperBound is not designed to change
            initial.getLowerBound(),    // lowerBound is not designed to change
View Full Code Here

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

     * @see #reset
     * @see #setCount
     * @return      instance of BoundedRangeStatistic
     */
    public Statistic unmodifiableView() {
        return ( new BoundedRangeStatisticImpl(
            this.current,               // this is the actual changing statistic
            this.highWaterMark,         // highWaterMark may change per current
            this.lowWaterMark,          // lowWaterMark may change per current
            initial.getUpperBound(),    // upperBound is not designed to change
            initial.getLowerBound(),    // lowerBound is not designed to change
View Full Code Here

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

  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

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

    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

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

  }

  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

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

  initStats();
    }

    private void initStats() {
  pooledCountStat = new MutableBoundedRangeStatisticImpl(
      new BoundedRangeStatisticImpl("PooledCount",
    "Count", 0, entityDelegate.getMaxPoolSize(),
    entityDelegate.getSteadyPoolSize()));
  readyCountStat = new MutableBoundedRangeStatisticImpl(
      new BoundedRangeStatisticImpl("ReadyCount",
    "Count", 0, entityDelegate.getMaxCacheSize(), 0));
    }
View Full Code Here

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

  super.initialize("com.sun.enterprise.admin.monitor.stats.EJBPoolStats");

  jmsStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("JmsMaxMessagesLoad"));
  beansInPoolStat = new MutableBoundedRangeStatisticImpl(
    new BoundedRangeStatisticImpl("NumBeansInPool",
        "Count", 0, delegate.getMaxPoolSize(),
        delegate.getSteadyPoolSize()));
  threadStat = new MutableBoundedRangeStatisticImpl(
    new BoundedRangeStatisticImpl("NumThreadsWaiting"));
  createdStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("TotalBeansCreated"));
  destroyedStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("TotalBeansDestroyed"));
    }
View Full Code Here

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

  this.sessionDelegate = delegate;
    }

    protected void initSessionStats() {
  methodReadyCountStat = new MutableBoundedRangeStatisticImpl(
      new BoundedRangeStatisticImpl("MethodReadyCount",
    "Count", 0, getMaxReadyCount(), getMinReadyCount()));
    }
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.