90 * Returns the total amount of physical memory in bytes. |
90 * Returns the total amount of physical memory in bytes. |
91 * |
91 * |
92 * @return the total amount of physical memory in bytes. |
92 * @return the total amount of physical memory in bytes. |
93 */ |
93 */ |
94 public long getTotalPhysicalMemorySize(); |
94 public long getTotalPhysicalMemorySize(); |
|
95 |
|
96 /** |
|
97 * Returns the "recent cpu usage" for the whole system. This value is a |
|
98 * double in the [0.0,1.0] interval. A value of 0.0 means that all CPUs |
|
99 * were idle during the recent period of time observed, while a value |
|
100 * of 1.0 means that all CPUs were actively running 100% of the time |
|
101 * during the recent period being observed. All values betweens 0.0 and |
|
102 * 1.0 are possible depending of the activities going on in the system. |
|
103 * If the system recent cpu usage is not available, the method returns a |
|
104 * negative value. |
|
105 * |
|
106 * @return the "recent cpu usage" for the whole system; a negative |
|
107 * value if not available. |
|
108 * @since 1.7 |
|
109 */ |
|
110 public double getSystemCpuLoad(); |
|
111 |
|
112 /** |
|
113 * Returns the "recent cpu usage" for the Java Virtual Machine process. |
|
114 * This value is a double in the [0.0,1.0] interval. A value of 0.0 means |
|
115 * that none of the CPUs were running threads from the JVM process during |
|
116 * the recent period of time observed, while a value of 1.0 means that all |
|
117 * CPUs were actively running threads from the JVM 100% of the time |
|
118 * during the recent period being observed. Threads from the JVM include |
|
119 * the application threads as well as the JVM internal threads. All values |
|
120 * betweens 0.0 and 1.0 are possible depending of the activities going on |
|
121 * in the JVM process and the whole system. If the Java Virtual Machine |
|
122 * recent CPU usage is not available, the method returns a negative value. |
|
123 * |
|
124 * @return the "recent cpu usage" for the Java Virtual Machine process; |
|
125 * a negative value if not available. |
|
126 * @since 1.7 |
|
127 */ |
|
128 public double getProcessCpuLoad(); |
|
129 |
95 } |
130 } |