1 22 package org.jboss.management.j2ee.statistics; 23 24 import javax.management.j2ee.statistics.CountStatistic ; 25 import javax.management.j2ee.statistics.JMSEndpointStats ; 26 import javax.management.j2ee.statistics.TimeStatistic ; 27 28 36 public abstract class JMSEndpointStatsImpl extends StatsBase 37 implements JMSEndpointStats 38 { 39 41 42 private static final long serialVersionUID = -7305748957998405748L; 43 44 private CountStatistic mMessageCount; 46 private CountStatistic mPendingMessageCount; 47 private CountStatistic mExpiredMessageCount; 48 private TimeStatistic mMessageWaitTime; 49 50 52 public JMSEndpointStatsImpl(CountStatistic pMessageCount, 53 CountStatistic pPendingMessageCount, 54 CountStatistic pExpiredMessageCount, 55 TimeStatistic pMessageWaitTime) 56 { 57 mMessageCount = pMessageCount; 58 super.addStatistic("MessageCount", mMessageCount); 59 mPendingMessageCount = pPendingMessageCount; 60 super.addStatistic("PendingMessageCount", mPendingMessageCount); 61 mExpiredMessageCount = pExpiredMessageCount; 62 super.addStatistic("ExpiredMessageCoun", mExpiredMessageCount); 63 mMessageWaitTime = pMessageWaitTime; 64 super.addStatistic("MessageWaitTime", mMessageWaitTime); 65 } 66 67 69 71 public CountStatistic getMessageCount() 72 { 73 return mMessageCount; 74 } 75 76 public CountStatistic getPendingMessageCount() 77 { 78 return mPendingMessageCount; 79 } 80 81 public CountStatistic getExpiredMessageCount() 82 { 83 return mExpiredMessageCount; 84 } 85 86 public TimeStatistic getMessageWaitTime() 87 { 88 return mMessageWaitTime; 89 } 90 } 91 | Popular Tags |