KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > dso > GCStatsWrapper


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.admin.dso;
5
6 import java.util.Date JavaDoc;
7
8 import com.tc.objectserver.api.GCStats;
9
10 public class GCStatsWrapper implements GCStats {
11   private GCStats m_gcStats;
12   private Date JavaDoc m_startDate;
13
14   GCStatsWrapper(GCStats gcStats) {
15     m_gcStats = gcStats;
16     m_startDate = new Date JavaDoc(gcStats.getStartTime());
17   }
18
19   public int getIteration() {
20     return m_gcStats.getIteration();
21   }
22
23   public long getStartTime() {
24     return m_gcStats.getStartTime();
25   }
26
27   public Date JavaDoc getStartDate() {
28     return m_startDate;
29   }
30
31   public long getElapsedTime() {
32     return m_gcStats.getElapsedTime();
33   }
34
35   public long getBeginObjectCount() {
36     return m_gcStats.getBeginObjectCount();
37   }
38
39   public long getCandidateGarbageCount() {
40     return m_gcStats.getCandidateGarbageCount();
41   }
42
43   public long getActualGarbageCount() {
44     return m_gcStats.getActualGarbageCount();
45   }
46 }
47
Popular Tags