Package javax.management.j2ee.statistics

Examples of javax.management.j2ee.statistics.RangeStatistic


                        long upperBound = bStat.getUpperBound();
                        mbeanStat.add(new String[] { "Upper Bound", Long.toString(upperBound) });
                        long lowerBound = bStat.getLowerBound();
                        mbeanStat.add(new String[] { "Lower Bound", Long.toString(lowerBound) });
                    } else if (statistic instanceof RangeStatistic) {
                        RangeStatistic rStat = (RangeStatistic) statistic;
                        long highWaterMark = rStat.getHighWaterMark();
                        mbeanStat.add(new String[] { "High Water Mark", Long.toString(highWaterMark) });
                        long lowWaterMark = rStat.getLowWaterMark();
                        mbeanStat.add(new String[] { "Low Water Mark", Long.toString(lowWaterMark) });
                        long current = rStat.getCurrent();
                        mbeanStat.add(new String[] { "Current", Long.toString(current) });
                    }

                    mbeanStats.put(name, mbeanStat);
                }
View Full Code Here


                                Long.toString(upperBound) });
                        long lowerBound = bStat.getLowerBound();
                        mbeanStat.add(new String[] { "Lower Bound",
                                Long.toString(lowerBound) });
                    } else if (statistic instanceof RangeStatistic) {
                        RangeStatistic rStat = (RangeStatistic) statistic;
                        long highWaterMark = rStat.getHighWaterMark();
                        mbeanStat.add(new String[] { "High Water Mark",
                                Long.toString(highWaterMark) });
                        long lowWaterMark = rStat.getLowWaterMark();
                        mbeanStat.add(new String[] { "Low Water Mark",
                                Long.toString(lowWaterMark) });
                        long current = rStat.getCurrent();
                        mbeanStat.add(new String[] { "Current",
                                Long.toString(current) });
                    }

                    mbeanStats.put(name, mbeanStat);
View Full Code Here

                                Long.toString(upperBound) });
                        long lowerBound = bStat.getLowerBound();
                        mbeanStat.add(new String[] { "Lower Bound",
                                Long.toString(lowerBound) });
                    } else if (statistic instanceof RangeStatistic) {
                        RangeStatistic rStat = (RangeStatistic) statistic;
                        long highWaterMark = rStat.getHighWaterMark();
                        mbeanStat.add(new String[] { "High Water Mark",
                                Long.toString(highWaterMark) });
                        long lowWaterMark = rStat.getLowWaterMark();
                        mbeanStat.add(new String[] { "Low Water Mark",
                                Long.toString(lowWaterMark) });
                        long current = rStat.getCurrent();
                        mbeanStat.add(new String[] { "Current",
                                Long.toString(current) });
                    }

                    mbeanStats.put(name, mbeanStat);
View Full Code Here

                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details",
                                GuiUtil.getMessage("monitoring.UpperBound")+": " + stat.getUpperBound() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.LowerBound")+": " + stat.getLowerBound()+ " " + stat.getUnit()+ "<br/>");
                    } else if (stats[i] instanceof RangeStatistic) {
                        RangeStatistic stat = (RangeStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCurrent() + " " + stat.getUnit());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details",
                                GuiUtil.getMessage("monitoring.HighWater")+": " + stat.getHighWaterMark() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.LowWater")+": " + stat.getLowWaterMark() + " " + stat.getUnit()+ "<br/>");
                    } else if (stats[i] instanceof CountStatistic) {
                        CountStatistic stat = (CountStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCount() + " " + stat.getUnit());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details", "");
                    } else if (stats[i] instanceof TimeStatistic) {
                        TimeStatistic stat = (TimeStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCount() + " " + stat.getUnit());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details",
                                GuiUtil.getMessage("monitoring.MaxTime")+": " + stat.getMaxTime() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.MinTime")+": " + stat.getMinTime() + " " + stat.getUnit() + "<br/>" +
                                GuiUtil.getMessage("monitoring.TotalTime")+": " + stat.getTotalTime() + " " + stat.getUnit()+ "<br/>");
                    } else if (stats[i] instanceof StringStatistic) {
                        StringStatistic stat = (StringStatistic)stats[i];
                        statMap.put("Name", stat.getName());
                        statMap.put("Value", stat.getCurrent());
                        statMap.put("Description", stat.getDescription());
                        statMap.put("StartTime", df.format(new Date(stat.getStartTime())));
                        statMap.put("LastSampleTime", df.format(new Date(stat.getLastSampleTime())));
                        statMap.put("Details", "");
                    } else if (stats[i] instanceof Statistic) {
                        statMap.put("Name", stats[i].getName());
                        statMap.put("Value", stats[i].getUnit());
                        statMap.put("Description", stats[i].getDescription());
View Full Code Here

      Verify that every Statistic can be successfully accessed.
     */
      protected void
    accessAllStatistics( final ConnectionPoolStats s )
    {
      final RangeStatistic r1  = s.getNumConnUsed();
      assert( r1 != null );
     
      final RangeStatistic r2  = s.getNumConnFree() ;
      assert( r2 != null );
     
    final RangeStatistic r3 = s.getConnRequestWaitTime();
      assert( r3 != null );

      final CountStatistic c1 = s.getNumConnFailedValidation() ;
      assert( c1 != null );
     
View Full Code Here

      return brs;
   }

   public RangeStatistic getWaitingThreadCount()
   {
      RangeStatistic rs = (RangeStatistic) getStatistic("WaitingThreadCount");
      return rs;
   }
View Full Code Here

                                Long.toString(upperBound) });
                        long lowerBound = bStat.getLowerBound();
                        mbeanStat.add(new String[] { "Lower Bound",
                                Long.toString(lowerBound) });
                    } else if (statistic instanceof RangeStatistic) {
                        RangeStatistic rStat = (RangeStatistic) statistic;
                        long highWaterMark = rStat.getHighWaterMark();
                        mbeanStat.add(new String[] { "High Water Mark",
                                Long.toString(highWaterMark) });
                        long lowWaterMark = rStat.getLowWaterMark();
                        mbeanStat.add(new String[] { "Low Water Mark",
                                Long.toString(lowWaterMark) });
                        long current = rStat.getCurrent();
                        mbeanStat.add(new String[] { "Current",
                                Long.toString(current) });
                    }

                    mbeanStats.put(name, mbeanStat);
View Full Code Here

TOP

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

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.