|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsysmon.MemoryMonitoringData
This Class stores the Memory Information values. Indexes used has to be one of the constants defined as *_INDEX. Data are stored in Bytes.
Field Summary | |
static int |
BUFFERS_MEM_INDEX
Index of Physical Memory Size used for Buffers |
static int |
CACHED_MEM_INDEX
Index of Physical Memory Size used for Cache |
static int |
CACHED_SWAP_INDEX
Index of Swap Memory Size used for Cache |
static int |
FREE_MEM_INDEX
Index of Free Physical Memory Size |
static int |
FREE_SWAP_INDEX
Index of Free Swap Size |
static int |
NB_INDEXES
Number of indexes Keep this value up to date |
static int |
TOTAL_MEM_INDEX
Index of Total Physical Memory Size |
static int |
TOTAL_SWAP_INDEX
Index of Total Swap Size |
static long[] |
usages
Array storing all the values. |
static int |
USED_MEM_INDEX
Index of Used Physical Memory Size |
static int |
USED_SWAP_INDEX
Index of Used Swap Size |
Constructor Summary | |
MemoryMonitoringData()
Initializes usages array |
Method Summary | |
long |
getUsage(int index)
Return the usage given in parameter. |
long[] |
getUsages()
Returns the usages array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOTAL_MEM_INDEX
public static final int USED_MEM_INDEX
public static final int FREE_MEM_INDEX
public static final int BUFFERS_MEM_INDEX
public static final int CACHED_MEM_INDEX
public static final int TOTAL_SWAP_INDEX
public static final int USED_SWAP_INDEX
public static final int FREE_SWAP_INDEX
public static final int CACHED_SWAP_INDEX
public static final int NB_INDEXES
public static long[] usages
Constructor Detail |
public MemoryMonitoringData()
usages
array
Method Detail |
public long[] getUsages()
usages
array. Values in
the returned array can be accessed using *_INDEX declared in
this Class
usages
arraypublic long getUsage(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
-
java.lang.ArrayIndexOutOfBoundsException
- if index >= NB_INDEXES
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |