Examples of BoundedRangeStatisticImpl


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

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

    }

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

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

    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

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

  }

  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

                    getAttributeInfo().getDescription(),
                    time, time ));

        currentNumberOfThreads =
            new MutableBoundedRangeStatisticImpl(
                new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
                    stringCurrentNumberOfThreads, "count",
                    threadPool.getAttribute( stringCurrentNumberOfThreads ).
                    getAttributeInfo().getDescription(),
                    time, time ));

        averageWorkCompletionTime =
            new MutableBoundedRangeStatisticImpl(
                new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
                    stringAverageWorkCompletionTime, "Milliseconds",
                    threadPool.getAttribute( stringAverageWorkCompletionTime ).
                    getAttributeInfo().getDescription(),
                    time, time ));

        MonitoredObject workQueue = threadPool.getChild(
            ORBConstants.WORKQUEUE_DEFAULT_NAME );

        totalWorkItemsAdded =
            new MutableCountStatisticImpl(
                new CountStatisticImpl( 0, stringTotalWorkItemsAdded, "count",
                    workQueue.getAttribute( stringTotalWorkItemsAdded ).
                    getAttributeInfo().getDescription(),
                    time, time ));

            numberOfWorkItemsInQueue =
            new MutableBoundedRangeStatisticImpl(
                new BoundedRangeStatisticImpl( 0, 0,0, java.lang.Long.MAX_VALUE, 0,
                    stringNumberOfWorkItemsInQueue, "count",
                    workQueue.getAttribute( stringNumberOfWorkItemsInQueue ).
                    getAttributeInfo( ).getDescription(),
                    time, time ));

        averageTimeInQueue =
            new MutableBoundedRangeStatisticImpl(
                new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
                    stringAverageTimeInQueue, "Milliseconds",
                    workQueue.getAttribute( stringAverageTimeInQueue ).
                    getAttributeInfo( ).getDescription(),
                    time, time ));
View Full Code Here

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

        uptime = new MutableCountStatisticImpl(u);
       
       
        // Initialize a MutableBoundedRangeStatistic
        long upper = Runtime.getRuntime().maxMemory();
        BoundedRangeStatistic h =  new BoundedRangeStatisticImpl(
                    sm.getString("jvmstats.jvm_heapsize"),
                    sm.getString("jvmstats.bytes"),
                    sm.getString("jvmstats.jvm_heapsize_desc"),
                    0, upper, 0);
       
View Full Code Here

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

     * @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
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.