1 *java.lang.management.OperatingSystemMXBean* *OperatingSystemMXBean* The managem
3 public interface interface OperatingSystemMXBean
6 |java.lang.management.OperatingSystemMXBean_Description|
7 |java.lang.management.OperatingSystemMXBean_Fields|
8 |java.lang.management.OperatingSystemMXBean_Constructors|
9 |java.lang.management.OperatingSystemMXBean_Methods|
11 ================================================================================
13 *java.lang.management.OperatingSystemMXBean_Methods*
14 |java.lang.management.OperatingSystemMXBean.getArch()|Returns the operating sys
15 |java.lang.management.OperatingSystemMXBean.getAvailableProcessors()|Returns th
16 |java.lang.management.OperatingSystemMXBean.getName()|Returns the operating sys
17 |java.lang.management.OperatingSystemMXBean.getVersion()|Returns the operating
19 *java.lang.management.OperatingSystemMXBean_Description*
21 The management interface for the operating system on which the Java virtual
24 A Java virtual machine has a single instance of the implementation class of
25 this interface. This instance implementing this interface is an MXBean that can
26 be obtained by calling the (|java.lang.management.ManagementFactory|) method or
28 <tt>MBeanServer</tt>(|java.lang.management.ManagementFactory|) method.
30 The ObjectName for uniquely identifying the MXBean for the operating system
31 within an MBeanServer is:
32 <tt>java.lang:type=OperatingSystem</tt>(|java.lang.management.ManagementFactory|)
35 This interface defines several convenient methods for accessing system
36 properties about the operating system on which the Java virtual machine is
40 *java.lang.management.OperatingSystemMXBean.getArch()*
42 public |java.lang.String| getArch()
44 Returns the operating system architecture. This method is equivalent to
45 System.getProperty("os.arch").
48 Returns: the operating system architecture.
49 *java.lang.management.OperatingSystemMXBean.getAvailableProcessors()*
51 public int getAvailableProcessors()
53 Returns the number of processors available to the Java virtual machine. This
54 method is equivalent to the (|java.lang.Runtime|) method. This value may change
55 during a particular invocation of the virtual machine.
58 Returns: the number of processors available to the virtual machine; never smaller than
60 *java.lang.management.OperatingSystemMXBean.getName()*
62 public |java.lang.String| getName()
64 Returns the operating system name. This method is equivalent to
65 System.getProperty("os.name").
68 Returns: the operating system name.
69 *java.lang.management.OperatingSystemMXBean.getVersion()*
71 public |java.lang.String| getVersion()
73 Returns the operating system version. This method is equivalent to
74 System.getProperty("os.version").
77 Returns: the operating system version.