| java.lang.Object java.lang.management.MemoryUsage
MemoryUsage | public class MemoryUsage (Code) | |
A memory usage snapshot.
since: 1.5 |
Constructor Summary | |
public | MemoryUsage(long init, long used, long committed, long max)
Constructs a new MemoryUsage instance. |
MemoryUsage | public MemoryUsage(long init, long used, long committed, long max)(Code) | |
Constructs a new MemoryUsage instance.
Parameters: init - The initial amount of memory (bytes) or -1 ifundefined. Parameters: used - The amount of memory used (bytes). Parameters: committed - The amount of memory committed (bytes). Parameters: max - The maximum amount of memory available or -1 ifundefined. throws: IllegalArgumentException - if init ormax are less than -1, used orcommitted is negative, used isgreater than committed or committed is greater than max if defined. |
from | public static MemoryUsage from(CompositeData cd)(Code) | |
Constructs a MemoryUsage object from the CompositeData passed.
Parameters: cd - The CompositeDate object to retrieve data from. A MemoryUsage instance. throws: IllegalArgumentException - if cd does not containMemoryUsage data. |
getCommitted | public long getCommitted()(Code) | | |
getInit | public long getInit()(Code) | | |
getMax | public long getMax()(Code) | | |
getUsed | public long getUsed()(Code) | | |
|
|