Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.management
Class JMSConnectionStatsImpl  view JMSConnectionStatsImpl download JMSConnectionStatsImpl.java

java.lang.Object
  extended byorg.activemq.management.StatisticImpl
      extended byorg.activemq.management.StatsImpl
          extended byorg.activemq.management.JMSConnectionStatsImpl
All Implemented Interfaces:
Resettable, javax.management.j2ee.statistics.Statistic, javax.management.j2ee.statistics.Stats

public class JMSConnectionStatsImpl
extends StatsImpl

Statistics for a JMS connection

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.util.List sessions
           
private  boolean transactional
           
 
Fields inherited from class org.activemq.management.StatsImpl
 
Fields inherited from class org.activemq.management.StatisticImpl
 
Constructor Summary
JMSConnectionStatsImpl(java.util.List sessions, boolean transactional)
           
 
Method Summary
 void dump(org.activemq.util.IndentPrinter out)
           
 JMSSessionStatsImpl[] getSessions()
           
 boolean isTransactional()
           
 void reset()
          Reset the statistic
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
 
Methods inherited from class org.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessions

private java.util.List sessions

transactional

private boolean transactional
Constructor Detail

JMSConnectionStatsImpl

public JMSConnectionStatsImpl(java.util.List sessions,
                              boolean transactional)
Method Detail

getSessions

public JMSSessionStatsImpl[] getSessions()

reset

public void reset()
Description copied from interface: Resettable
Reset the statistic

Specified by:
reset in interface Resettable
Overrides:
reset in class StatsImpl

isTransactional

public boolean isTransactional()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class StatisticImpl

dump

public void dump(org.activemq.util.IndentPrinter out)