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.runtime;
05:
06: public interface MemoryUsage {
07:
08: public long getFreeMemory();
09:
10: public String getDescription();
11:
12: /* If -Xmx flag is not specified, this might not be correct or consistent over time */
13: public long getMaxMemory();
14:
15: public long getUsedMemory();
16:
17: public int getUsedPercentage();
18:
19: /**
20: * @return - the number of times GC was executed (on this memory pool, if the usage is for a specific memory pool)
21: * since the beginning. -1 if this is not supported.
22: */
23: public long getCollectionCount();
24: }
|