comparison src/org/dancres/blitz/stats/BlockingOpsStat.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 Provides information about the total number of blocking reads and takes
5 active within a Blitz instance.
6 */
7 public class BlockingOpsStat implements Stat {
8 private int theReadCount;
9 private int theTakeCount;
10 private long theId;
11
12 public BlockingOpsStat(long anId, int aReadCount, int aTakeCount) {
13 theId = anId;
14 theReadCount = aReadCount;
15 theTakeCount = aTakeCount;
16 }
17
18 public long getId() {
19 return theId;
20 }
21
22 public int getReaders() {
23 return theReadCount;
24 }
25
26 public int getTakers() {
27 return theTakeCount;
28 }
29
30 public String toString() {
31 return "Blocking reads: " + theReadCount + ", takes: " + theTakeCount;
32 }
33 }