1 22 package org.jboss.management.j2ee.statistics; 23 24 import javax.management.j2ee.statistics.JMSConnectionStats ; 25 import javax.management.j2ee.statistics.JMSSessionStats ; 26 27 33 public final class JMSConnectionStatsImpl extends StatsBase 34 implements JMSConnectionStats 35 { 36 38 39 private static final long serialVersionUID = -6805324618929625115L; 40 41 43 private JMSSessionStats [] mSessions; 44 private boolean mTransactional; 45 46 48 public JMSConnectionStatsImpl(JMSSessionStats [] pSessions, boolean pIsTransactional) 49 { 50 if (pSessions == null) 51 { 52 pSessions = new JMSSessionStats [0]; 53 } 54 mSessions = pSessions; 55 mTransactional = pIsTransactional; 56 } 57 58 60 62 66 public JMSSessionStats [] getSessions() 67 { 68 return mSessions; 69 } 70 71 75 public boolean isTransactional() 76 { 77 return mTransactional; 78 } 79 } 80 | Popular Tags |