1 4 package com.tc.admin.dso; 5 6 import java.util.Date ; 7 8 import com.tc.objectserver.api.GCStats; 9 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 } 47 | Popular Tags |