|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VirtualMachineInfo
Returns the virtual machine information
| Method Summary | |
|---|---|
long |
cpuTime()
Returns the CPU used by this virtual machine |
Machine.State |
getState()
Returns the machine's state |
long |
maxMemory()
Returns the maximum memory allocated to this virtual machine. |
long |
memory()
Returns the current memory used by this virtual machine |
void |
registerMemoryListener(MemoryListener ml,
long delay,
TimeUnit unit)
Registers a memory changes listener |
void |
unregisterMemoryListener(MemoryListener ml)
Un-registers a memory changes listener |
| Methods inherited from interface org.glassfish.virtualization.spi.StaticVirtualMachineInfo |
|---|
nbVirtCpu |
| Method Detail |
|---|
long maxMemory()
throws VirtException
VirtException
long memory()
throws VirtException
memory in interface StaticVirtualMachineInfoVirtException
long cpuTime()
throws VirtException
VirtException
Machine.State getState()
throws VirtException
VirtException - if the machine's state cannot be obtained
void registerMemoryListener(MemoryListener ml,
long delay,
TimeUnit unit)
ml - the memory listener instancedelay - notification interval for memory changes polling.unit - the time unit to express delayvoid unregisterMemoryListener(MemoryListener ml)
ml, - the listener to un-register.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||