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

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


    private void initializeStatistics() {
        long time = System.currentTimeMillis();
        CountStatistic cs = null;
   
        cs = new CountStatisticImpl(0,
            "endPointsCreated", "",
        "The number of endpoints created using this endpoint factory"
            ,time, time);
        endPointsCreatedCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0, "messagesDelivered", "",
                    "The number of messages delivered to endpoints created using this " +
                    "endpoint factory",time, time);
        messagesDeliveredCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0, "runtimeExceptionCount", "",
                    "The number of runtime exceptions thown by endpoints created" +
                    "by this end point factory",time, time);
        runTimeExceptionsCount = new MutableCountStatisticImpl( cs );
    }
View Full Code Here


    private void initializeStatistics() {
        long time = System.currentTimeMillis();
        CountStatistic cs = null;
   
        cs = new CountStatisticImpl(0,
            "SubmittedWorkCount", "",
        "Number of work objects submitted by a connector module for  execution"
        + "WorkQueue before executing",time, time);
        submittedWorkCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0,
            "RejectedWorkCount", "",
        "Number of work objects rejected by the application server",time, time);
        rejectedWorkCount = new MutableCountStatisticImpl( cs );

        cs = new CountStatisticImpl(0,
            "CompletedWorkCount", "",
        "Number of work objects completed execution",time, time);
        completedWorkCount = new MutableCountStatisticImpl( cs );

        //the low water mark is set with a seed value of 1 to
View Full Code Here

     * @see #reset
     * @see #setCount
     * @return      instance of CountStatistic
     */
    public Statistic unmodifiableView() {
        return ( new CountStatisticImpl(
            this.count,                 // this is the actual changing statistic
            initial.getName(),          // name does not change
            initial.getUnit(),          // unit does not change
            initial.getDescription(),   // description does not change
            this.lastSampleTime,        // changes all the time!
View Full Code Here

     * @see #reset
     * @see #setCount
     * @return      instance of CountStatistic
     */
    public Statistic unmodifiableView() {
        return ( new CountStatisticImpl(
            this.count,                 // this is the actual changing statistic
            initial.getName(),          // name does not change
            initial.getUnit(),          // unit does not change
            initial.getDescription(),   // description does not change
            this.lastSampleTime,        // changes all the time!
View Full Code Here

     * @see #reset
     * @see #setCount
     * @return      instance of CountStatistic
     */
    public Statistic unmodifiableView() {
        return ( new CountStatisticImpl(
            this.count,                 // this is the actual changing statistic
            initial.getName(),          // name does not change
            initial.getUnit(),          // unit does not change
            initial.getDescription(),   // description does not change
            this.lastSampleTime,        // changes all the time!
View Full Code Here

      );
  }

  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,
View Full Code Here

    protected void initialize() {
  super.initialize();

  synchronized (checkpointCountLock) {
      checkpointCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointCount"));
      checkpointSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointSuccessCount"));
      checkpointErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointErrorCount"));
  }

  synchronized (checkpointTimeLock) {
      checkpointTime = new MutableAverageRangeStatisticImpl(
        new BoundedRangeStatisticImpl(0, 0, 0,
View Full Code Here

    protected void initialize() {
  super.initialize();

  synchronized (checkpointCountLock) {
      checkpointCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointCount"));
      checkpointSuccessCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointSuccessCount"));
      checkpointErrorCount = new MutableCountStatisticImpl(
    new CountStatisticImpl("CheckpointErrorCount"));
  }

  long now = System.currentTimeMillis();
  synchronized (checkpointTimeLock) {
      checkpointTime = new MutableAverageRangeStatisticImpl(
View Full Code Here

    private void initialize() {
  super.initialize("com.sun.enterprise.admin.monitor.stats.EJBMethodStats");

  executionStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("ExecutionTime", "Milliseconds" ));
  errorStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("TotalNumErrors"));

  long now = System.currentTimeMillis();
  methodStat = new MutableTimeStatisticImpl(
    new TimeStatisticImpl(0, 0, 0, 0,
        "MethodStatistic", "", "", now, now));
  successStat = new MutableCountStatisticImpl(
    new CountStatisticImpl("TotalNumSuccess"));

  delegate.setMutableTimeStatisticImpl(methodStat);
    }
View Full Code Here

  initStats();
    }

    private void initStats() {
  messageCountStat = new MutableCountStatisticImpl(
      new CountStatisticImpl("MessageCount"));
    }
View Full Code Here

TOP

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

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.