KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > runtime > MemoryUsage


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.runtime;
5
6 public interface MemoryUsage {
7
8   public long getFreeMemory();
9
10   public String JavaDoc 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 }
25
Popular Tags