KickJava   Java API By Example, From Geeks To Geeks.

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


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.openmbean.OpenDataException JavaDoc;
9 import javax.management.openmbean.TabularData JavaDoc;
10
11 import com.tc.management.TerracottaMBean;
12
13 public interface ClientTxMonitorMBean extends TerracottaMBean {
14
15   /**
16    * The total number of read transactions in this L1 client.
17    *
18    * @return the total number of read transactions
19    */

20   int getReadTransactionCount();
21
22   int getReadTransactionRatePerSecond();
23
24   int getWriteTransactionCount();
25
26   int getWriteTransactionRatePerSecond();
27
28   int getMinWritesPerWriteTransaction();
29
30   int getMaxWritesPerWriteTransaction();
31
32   int getMaxModifiedObjectsPerTransaction();
33
34   int getAvgModifiedObjectsPerTransaction();
35
36   int getObjectModificationRatePerSecond();
37
38   int getMaxNewObjectsPerTransaction();
39
40   int getAvgNewObjectsPerTransaction();
41
42   int getObjectCreationRatePerSecond();
43
44   int getMaxNotificationsPerTransaction();
45
46   int getAvgNotificationsPerTransaction();
47
48   int getMaxWritesPerObject();
49
50   int getAvgWritesPerObject();
51
52   TabularData JavaDoc getObjectCreationCountByClass() throws OpenDataException JavaDoc;
53
54   void reset();
55
56   void committedReadTransaction();
57
58   /**
59    * @param notifyCount the number of {@link Object#notify()} invocations for this transaction
60    * @param modifiedObjectCount the total number of objects that were modified (NOT including creations)
61    * @param writeCountPerObject an array of individual write counts for each object in the transaction
62    * @param newObjectCountByClass a {@link Map}[{@link Class}, {@link Integer}] of all new objects created
63    */

64   void committedWriteTransaction(final int notifyCount, final int modifiedObjectCount, final int[] writeCountPerObject,
65                                  final Map JavaDoc newObjectCountByClass);
66
67 }
68
Popular Tags