001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
003: */
004: package com.tc.management.beans.tx;
005:
006: import java.util.Map;
007:
008: import javax.management.NotCompliantMBeanException;
009: import javax.management.openmbean.OpenDataException;
010: import javax.management.openmbean.TabularData;
011:
012: import com.tc.management.AbstractTerracottaMBean;
013:
014: public final class MockClientTxMonitor extends AbstractTerracottaMBean
015: implements ClientTxMonitorMBean {
016:
017: public MockClientTxMonitor() throws NotCompliantMBeanException {
018: super (ClientTxMonitorMBean.class, false);
019: }
020:
021: public void committedReadTransaction() {
022: }
023:
024: public void committedWriteTransaction(int notifyCount,
025: int modifiedObjectCount, int[] writeCountPerObject,
026: Map newObjectCountByClass) {
027: }
028:
029: public int getAvgModifiedObjectsPerTransaction() {
030: return 0;
031: }
032:
033: public int getAvgNewObjectsPerTransaction() {
034: return 0;
035: }
036:
037: public int getAvgNotificationsPerTransaction() {
038: return 0;
039: }
040:
041: public int getAvgWritesPerObject() {
042: return 0;
043: }
044:
045: public int getAvgWritesPerWriteTransactionPerSecond() {
046: return 0;
047: }
048:
049: public int getMaxModifiedObjectsPerTransaction() {
050: return 0;
051: }
052:
053: public int getMaxNewObjectsPerTransaction() {
054: return 0;
055: }
056:
057: public int getMaxNotificationsPerTransaction() {
058: return 0;
059: }
060:
061: public int getMaxWritesPerObject() {
062: return 0;
063: }
064:
065: public int getMaxWritesPerWriteTransaction() {
066: return 0;
067: }
068:
069: public int getMinWritesPerWriteTransaction() {
070: return 0;
071: }
072:
073: public TabularData getObjectCreationCountByClass()
074: throws OpenDataException {
075: return null;
076: }
077:
078: public int getObjectCreationRatePerSecond() {
079: return 0;
080: }
081:
082: public int getObjectModificationRatePerSecond() {
083: return 0;
084: }
085:
086: public int getReadTransactionCount() {
087: return 0;
088: }
089:
090: public int getReadTransactionRatePerSecond() {
091: return 0;
092: }
093:
094: public int getWriteTransactionCount() {
095: return 0;
096: }
097:
098: public int getWriteTransactionRatePerSecond() {
099: return 0;
100: }
101:
102: public void reset() {
103: // nothing to reset
104: }
105:
106: }
|