public class OSMetrics extends Object implements Serializable
Constructor and Description |
---|
OSMetrics(long maxFileDescriptorCount,
long openFileDescriptorCount,
long processCpuTime,
long committedVirtualMemorySize,
long totalPhysicalMemorySize,
long freePhysicalMemorySize,
long totalSwapSpaceSize,
long freeSwapSpaceSize,
String name,
String version,
String arch,
int availableProcessors,
double systemLoadAverage)
This constructor is to be used by internal JMX framework only.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
String |
getVersion()
Returns the version of the operating system.
|
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, String name, String version, String arch, int availableProcessors, double systemLoadAverage)
maxFileDescriptorCount
- the maximum number of open file descriptors allowed by the
operating systemopenFileDescriptorCount
- the current number of open file descriptorsprocessCpuTime
- the amount of time (in nanoseconds) used by the member's processcommittedVirtualMemorySize
- the current number of megabytes of memory allocatedtotalPhysicalMemorySize
- the number of megabytes of free memory available to the
operating systemfreePhysicalMemorySize
- the number of megabytes of free memory available to the operating
systemtotalSwapSpaceSize
- the number of megabytes of swap space allocatedfreeSwapSpaceSize
- the number of megabytes of free swap spacename
- the name of the operating systemversion
- the version of the operating systemarch
- the hardware architectureavailableProcessors
- the number of available processorssystemLoadAverage
- the system load averagepublic long getMaxFileDescriptorCount()
public long getOpenFileDescriptorCount()
public long getProcessCpuTime()
public long getCommittedVirtualMemorySize()
public long getTotalPhysicalMemorySize()
public long getFreePhysicalMemorySize()
public long getTotalSwapSpaceSize()
public long getFreeSwapSpaceSize()
public String getName()
public String getVersion()
public String getArch()
public int getAvailableProcessors()
public double getSystemLoadAverage()