jrockit.management
Interface RuntimeMXBean

All Superinterfaces:
java.lang.management.RuntimeMXBean

public interface RuntimeMXBean
extends java.lang.management.RuntimeMXBean

This interface exposes runtime-specific information. It is Jrockit-specific extension of java.lang.management.RuntimeMXBean.

Author:
Marcus Hirt

Method Summary
 int[] getProcessAffinity()
          Returns a collection with the CPUs that the JVM process currently is running on.
 void setProcessAffinity(int[] bitmask)
          Sets the process affinity on the selected system.
 
Methods inherited from interface java.lang.management.RuntimeMXBean
getBootClassPath, getClassPath, getInputArguments, getLibraryPath, getManagementSpecVersion, getName, getSpecName, getSpecVendor, getSpecVersion, getStartTime, getSystemProperties, getUptime, getVmName, getVmVendor, getVmVersion, isBootClassPathSupported
 

Method Detail

setProcessAffinity

void setProcessAffinity(int[] bitmask)
Sets the process affinity on the selected system. The bitmask represents what processors to be selected. An int array of size 32 encodes the first 32 processors, right to left. Next int encodes the next 32 processors, and so on.

Parameters:
bitmask - the bitmask representing what CPU's to use for the JVM process as described above. If null, this is a noop.
Throws:
SecurityPermission - if you don't have the control permission set.
See Also:
ManagementPermission

getProcessAffinity

int[] getProcessAffinity()
Returns a collection with the CPUs that the JVM process currently is running on.

Returns:
a collection with the CPUs currently running the JVM process.
Throws:
NotAvailableException - if this functionality isn't available in this JVM. Linux versions of JRockit throws this exception.


Copyright © 2004-2005 BEA Systems Inc.