Java Doc for OperatingSystemMXBean.java in  » 6.0-JDK-Core » lang » java » lang » management » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » lang » java.lang.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.management.OperatingSystemMXBean

OperatingSystemMXBean
public interface OperatingSystemMXBean (Code)
The management interface for the operating system on which the Java virtual machine is running.

A Java virtual machine has a single instance of the implementation class of this interface. This instance implementing this interface is an MXBean that can be obtained by calling the ManagementFactory.getOperatingSystemMXBean method or from the ManagementFactory.getPlatformMBeanServerplatform MBeanServer method.

The ObjectName for uniquely identifying the MXBean for the operating system within an MBeanServer is:

ManagementFactory.OPERATING_SYSTEM_MXBEAN_NAMEjava.lang:type=OperatingSystem

This interface defines several convenient methods for accessing system properties about the operating system on which the Java virtual machine is running.
See Also:    * JMX Specification.
See Also:    * Ways to Access MXBeans
author:
   Mandy Chung
version:
   1.17, 05/05/07
since:
   1.5





Method Summary
public  StringgetArch()
     Returns the operating system architecture.
public  intgetAvailableProcessors()
     Returns the number of processors available to the Java virtual machine.
public  StringgetName()
     Returns the operating system name.
public  doublegetSystemLoadAverage()
     Returns the system load average for the last minute.
public  StringgetVersion()
     Returns the operating system version.



Method Detail
getArch
public String getArch()(Code)
Returns the operating system architecture. This method is equivalent to System.getProperty("os.arch"). the operating system architecture.
throws:
  java.lang.SecurityException - if a security manager exists and itscheckPropertiesAccess method doesn't allow accessto this system property.
See Also:   java.lang.SecurityManager.checkPropertyAccess(java.lang.String)
See Also:   java.lang.System.getProperty



getAvailableProcessors
public int getAvailableProcessors()(Code)
Returns the number of processors available to the Java virtual machine. This method is equivalent to the Runtime.availableProcessors method.

This value may change during a particular invocation of the virtual machine. the number of processors available to the virtualmachine; never smaller than one.




getName
public String getName()(Code)
Returns the operating system name. This method is equivalent to System.getProperty("os.name"). the operating system name.
throws:
  java.lang.SecurityException - if a security manager exists and itscheckPropertiesAccess method doesn't allow accessto this system property.
See Also:   java.lang.SecurityManager.checkPropertyAccess(java.lang.String)
See Also:   java.lang.System.getProperty



getSystemLoadAverage
public double getSystemLoadAverage()(Code)
Returns the system load average for the last minute. The system load average is the sum of the number of runnable entities queued to the and the number of runnable entities running on the available processors averaged over a period of time. The way in which the load average is calculated is operating system specific but is typically a damped time-dependent average.

If the load average is not available, a negative value is returned.

This method is designed to provide a hint about the system load and may be queried frequently. The load average may be unavailable on some platform where it is expensive to implement this method. the system load average; or a negative value if not available.
since:
   1.6




getVersion
public String getVersion()(Code)
Returns the operating system version. This method is equivalent to System.getProperty("os.version"). the operating system version.
throws:
  java.lang.SecurityException - if a security manager exists and itscheckPropertiesAccess method doesn't allow accessto this system property.
See Also:   java.lang.SecurityManager.checkPropertyAccess(java.lang.String)
See Also:   java.lang.System.getProperty



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.