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.admin.dso;
05:
06: import java.util.Date;
07:
08: import com.tc.objectserver.api.GCStats;
09:
10: public class GCStatsWrapper implements GCStats {
11: private GCStats m_gcStats;
12: private Date m_startDate;
13:
14: GCStatsWrapper(GCStats gcStats) {
15: m_gcStats = gcStats;
16: m_startDate = new Date(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 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: }
|