01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.core.api;
05:
06: import com.tc.objectserver.api.ObjectManagerStats;
07: import com.tc.objectserver.impl.ObjectManagerStatsImpl;
08: import com.tc.stats.counter.sampled.SampledCounter;
09:
10: public class DSOGlobalServerStatsImpl implements DSOGlobalServerStats {
11:
12: private final SampledCounter faultCounter;
13: private final SampledCounter flushCounter;
14: private final SampledCounter txnCounter;
15: private final ObjectManagerStatsImpl objMgrStats;
16:
17: public DSOGlobalServerStatsImpl(SampledCounter flushCounter,
18: SampledCounter faultCounter, SampledCounter txnCounter,
19: ObjectManagerStatsImpl objMgrStats) {
20: this .flushCounter = flushCounter;
21: this .faultCounter = faultCounter;
22: this .txnCounter = txnCounter;
23: this .objMgrStats = objMgrStats;
24: }
25:
26: public SampledCounter getObjectFlushCounter() {
27: return this .flushCounter;
28: }
29:
30: public SampledCounter getObjectFaultCounter() {
31: return this .faultCounter;
32: }
33:
34: public ObjectManagerStats getObjectManagerStats() {
35: return this .objMgrStats;
36: }
37:
38: public SampledCounter getTransactionCounter() {
39: return this.txnCounter;
40: }
41:
42: }
|