Package javax.management.j2ee.statistics

Examples of javax.management.j2ee.statistics.CountStatistic


    public void setStatsProvider(Layer provider) {
        this.networkManager = (NetworkManager)provider;
    }
    private void initializeStatistics() {

        CountStatistic c;
        c = new CountStatisticImpl("1xxSentSipResponses");
        _1xxSentSipResponses = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("2xxSentSipResponses");
        _2xxSentSipResponses = new MutableCountStatisticImpl(c);
View Full Code Here


    public void setStatsProvider(Layer provider) {
        this.networkManager = (NetworkManager)provider;
    }
    private void initializeStatistics() {

        CountStatistic c;
        c = new CountStatisticImpl("1xxSentSipResponses");
        _1xxSentSipResponses = new MutableCountStatisticImpl(c);

        c = new CountStatisticImpl("2xxSentSipResponses");
        _2xxSentSipResponses = new MutableCountStatisticImpl(c);
View Full Code Here

    }
   

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

  {
    boolean  equals  = super.equals( rhs ) && (rhs instanceof CountStatistic);
   
    if ( equals )
    {
      final CountStatistic  s  = (CountStatistic)rhs;
     
      equals  = getCount() == s.getCount();
    }
    return( equals );
  }
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);
View Full Code Here

      s.append(timeStatisticSpecificString());
    return ( s.toString() );
  }
  private String countStatisticSpecificString() {
    final StringBuffer s = new StringBuffer();
    final CountStatistic cs = (CountStatistic)stc;
    return ( s.append(cs.getCount()).toString() );
  }
View Full Code Here

      super.addStatistic("WaitingThreadCount", waitingThreadCount);
   }

   public CountStatistic getCloseCount()
   {
      CountStatistic cs = (CountStatistic) getStatistic("CloseCount");
      return cs;
   }
View Full Code Here

      return cs;
   }

   public CountStatistic getCreateCount()
   {
      CountStatistic cs = (CountStatistic) getStatistic("CreateCount");
      return cs;
   }
View Full Code Here

                            .getLastSampleTime());
                    mbeanStat.add(new String[] { "Last Sample Time",
                            lastSampleTime.toString() });

                    if (statistic instanceof CountStatistic) {
                        CountStatistic cStat = (CountStatistic) statistic;
                        long count = cStat.getCount();
                        mbeanStat.add(new String[] { "Count",
                                Long.toString(count) });
                    } else if (statistic instanceof TimeStatistic) {
                        TimeStatistic tStat = (TimeStatistic) statistic;
                        long count = tStat.getCount();
View Full Code Here

TOP

Related Classes of javax.management.j2ee.statistics.CountStatistic

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.