public class OSMetrics
extends java.lang.Object
Constructor and Description |
---|
OSMetrics(long maxFileDescriptorCount,
long openFileDescriptorCount,
long processCpuTime,
long committedVirtualMemorySize,
long totalPhysicalMemorySize,
long freePhysicalMemorySize,
long totalSwapSpaceSize,
long freeSwapSpaceSize,
java.lang.String name,
java.lang.String version,
java.lang.String arch,
int availableProcessors,
double systemLoadAverage)
This constructor is to be used by internal JMX framework only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArch()
Returns the hardware architecture.
|
int |
getAvailableProcessors()
Returns the number of available processors.
|
long |
getCommittedVirtualMemorySize()
Returns the current number of megabytes of memory allocated.
|
long |
getFreePhysicalMemorySize()
Returns the number of megabytes of free memory available to the operating system.
|
long |
getFreeSwapSpaceSize()
Returns the number of megabytes of free swap space.
|
long |
getMaxFileDescriptorCount()
Returns the maximum number of open file descriptors allowed by the operating system.
|
java.lang.String |
getName()
Returns the name of the operating system.
|
long |
getOpenFileDescriptorCount()
Returns the current number of open file descriptors..
|
long |
getProcessCpuTime()
Returns the amount of time (in nanoseconds) used by the member's process.
|
double |
getSystemLoadAverage()
Returns the system load average.
|
long |
getTotalPhysicalMemorySize()
Returns the number of megabytes of memory available to the operating system.
|
long |
getTotalSwapSpaceSize()
Returns the number of megabytes of swap space allocated.
|
java.lang.String |
getVersion()
Returns the version of the operating system.
|
java.lang.String |
toString()
String representation of OSMetrics
|
@ConstructorProperties(value={"maxFileDescriptorCount","openFileDescriptorCount","processCpuTime","committedVirtualMemorySize","totalPhysicalMemorySize","freePhysicalMemorySize","totalSwapSpaceSize","freeSwapSpaceSize","name","version","arch","availableProcessors","systemLoadAverage"}) public OSMetrics(long maxFileDescriptorCount, long openFileDescriptorCount, long processCpuTime, long committedVirtualMemorySize, long totalPhysicalMemorySize, long freePhysicalMemorySize, long totalSwapSpaceSize, long freeSwapSpaceSize, java.lang.String name, java.lang.String version, java.lang.String arch, int availableProcessors, double systemLoadAverage)
public long getMaxFileDescriptorCount()
public long getOpenFileDescriptorCount()
public long getProcessCpuTime()
public long getCommittedVirtualMemorySize()
public long getTotalPhysicalMemorySize()
public long getFreePhysicalMemorySize()
public long getTotalSwapSpaceSize()
public long getFreeSwapSpaceSize()
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getArch()
public int getAvailableProcessors()
public double getSystemLoadAverage()
public java.lang.String toString()
toString
in class java.lang.Object