KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > core > api > DSOGlobalServerStatsImpl


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.objectserver.core.api;
5
6 import com.tc.objectserver.api.ObjectManagerStats;
7 import com.tc.objectserver.impl.ObjectManagerStatsImpl;
8 import com.tc.stats.counter.sampled.SampledCounter;
9
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, SampledCounter faultCounter, SampledCounter txnCounter,
18                                   ObjectManagerStatsImpl objMgrStats) {
19     this.flushCounter = flushCounter;
20     this.faultCounter = faultCounter;
21     this.txnCounter = txnCounter;
22     this.objMgrStats = objMgrStats;
23   }
24
25   public SampledCounter getObjectFlushCounter() {
26     return this.flushCounter;
27   }
28
29   public SampledCounter getObjectFaultCounter() {
30     return this.faultCounter;
31   }
32
33   public ObjectManagerStats getObjectManagerStats() {
34     return this.objMgrStats;
35   }
36
37   public SampledCounter getTransactionCounter() {
38     return this.txnCounter;
39   }
40
41 }
42
Popular Tags