com.bea.jvm
Interface CPU

All Superinterfaces:
Describable, HardwareComponent

public interface CPU
extends HardwareComponent

Represents a processing unit in the Machine.

Author:
Calle Wilund, Marcus Hirt

Method Summary
 long getClockFrequency()
          Returns the clock frequency of this processor in Hz.
 java.lang.String getDescription()
          Returns a description of the CPU.
 double getLoad()
          Returns the CPU load on this CPU.
 

Method Detail

getLoad

public double getLoad()
               throws NotAvailableException
Returns the CPU load on this CPU. This is a value between 0.0, which means no load, to 1.0 which denotes a fully saturated CPU.

Returns:
see above.
Throws:
NotAvailableException - if this functionality isn't available in this JVM.

getClockFrequency

public long getClockFrequency()
                       throws NotAvailableException
Returns the clock frequency of this processor in Hz.

Returns:
the clock frequency in Hz.
Throws:
NotAvailableException - if this functionality isn't available in this JVM.

getDescription

public java.lang.String getDescription()
Returns a description of the CPU. For example Intel P3 1400Mhz.

Specified by:
getDescription in interface Describable
Returns:
see above.
See Also:
Describable.getDescription()