org.glassfish.virtualization.spi
Interface StaticVirtualMachineInfo

All Known Subinterfaces:
VirtualMachineInfo

public interface StaticVirtualMachineInfo

Static information about a virtual machine like its max memory, number of processors assigned, etc...

Author:
Jerome Dochez

Method Summary
 long memory()
          returns the currently used memory
 int nbVirtCpu()
          return the number of virtual CPUs allocated to the virtual machine
 

Method Detail

nbVirtCpu

int nbVirtCpu()
              throws VirtException
return the number of virtual CPUs allocated to the virtual machine

Returns:
number of virtual CPUs
Throws:
VirtException

memory

long memory()
            throws VirtException
returns the currently used memory

Returns:
the used memory
Throws:
VirtException


Copyright © 2012. All Rights Reserved.