comparison src/org/dancres/blitz/stats/TxnStat.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.stats;
2
3 /**
4 <p>Tracks transaction statistics. This stat is permanently enabled and
5 cannot be switched on or off. It's maintenance costs are entirely absorbed
6 by the caller recovering stats from StatsBoard.</p>
7
8 @see org.dancres.blitz.txn.TxnStatGenerator
9 */
10 public class TxnStat implements Stat {
11 private long theId;
12
13 private int theActiveTxnCount;
14
15 public TxnStat(long anId, int aTxnCount) {
16 theId = anId;
17 theActiveTxnCount = aTxnCount;
18 }
19
20 public long getId() {
21 return theId;
22 }
23
24 public int getActiveTxnCount() {
25 return theActiveTxnCount;
26 }
27
28 public String toString() {
29 return "Active Txns: " + theActiveTxnCount;
30 }
31 }