KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > management > beans > tx > MockClientTxMonitor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.management.beans.tx;
5
6 import java.util.Map JavaDoc;
7
8 import javax.management.NotCompliantMBeanException JavaDoc;
9 import javax.management.openmbean.OpenDataException JavaDoc;
10 import javax.management.openmbean.TabularData JavaDoc;
11
12 import com.tc.management.AbstractTerracottaMBean;
13
14 public final class MockClientTxMonitor extends AbstractTerracottaMBean implements ClientTxMonitorMBean {
15
16   public MockClientTxMonitor() throws NotCompliantMBeanException JavaDoc {
17     super(ClientTxMonitorMBean.class, false);
18   }
19
20   public void committedReadTransaction() {
21   }
22
23   public void committedWriteTransaction(int notifyCount, int modifiedObjectCount, int[] writeCountPerObject,
24                                         Map JavaDoc newObjectCountByClass) {
25   }
26
27   public int getAvgModifiedObjectsPerTransaction() {
28     return 0;
29   }
30
31   public int getAvgNewObjectsPerTransaction() {
32     return 0;
33   }
34
35   public int getAvgNotificationsPerTransaction() {
36     return 0;
37   }
38
39   public int getAvgWritesPerObject() {
40     return 0;
41   }
42
43   public int getAvgWritesPerWriteTransactionPerSecond() {
44     return 0;
45   }
46
47   public int getMaxModifiedObjectsPerTransaction() {
48     return 0;
49   }
50
51   public int getMaxNewObjectsPerTransaction() {
52     return 0;
53   }
54
55   public int getMaxNotificationsPerTransaction() {
56     return 0;
57   }
58
59   public int getMaxWritesPerObject() {
60     return 0;
61   }
62
63   public int getMaxWritesPerWriteTransaction() {
64     return 0;
65   }
66
67   public int getMinWritesPerWriteTransaction() {
68     return 0;
69   }
70
71   public TabularData JavaDoc getObjectCreationCountByClass() throws OpenDataException JavaDoc {
72     return null;
73   }
74
75   public int getObjectCreationRatePerSecond() {
76     return 0;
77   }
78
79   public int getObjectModificationRatePerSecond() {
80     return 0;
81   }
82
83   public int getReadTransactionCount() {
84     return 0;
85   }
86
87   public int getReadTransactionRatePerSecond() {
88     return 0;
89   }
90
91   public int getWriteTransactionCount() {
92     return 0;
93   }
94
95   public int getWriteTransactionRatePerSecond() {
96     return 0;
97   }
98
99   public void reset() {
100     // nothing to reset
101
}
102
103 }
104
Popular Tags