org.glassfish.virtualization.spi
Interface MachineInfo


public interface MachineInfo

Returns static information about a machine like it's memory, number of processors, etc..

Author:
Jerome Dochez

Method Summary
 int cores()
          Returns the number of cores
 int cpus()
          Returns the number of processors of this machine
 long memory()
          Returns the memory size of this machine
 

Method Detail

memory

long memory()
Returns the memory size of this machine

Returns:
the memory size

cpus

int cpus()
Returns the number of processors of this machine

Returns:
the cpu number

cores

int cores()
Returns the number of cores

Returns:
the number of cores


Copyright © 2012. All Rights Reserved.