public class OSMetrics extends Object
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) |
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() |
@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)
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 String getName()
public String getVersion()
public String getArch()
public int getAvailableProcessors()
public double getSystemLoadAverage()
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.