Package org.apache.geode.management
Class OSMetrics
java.lang.Object
org.apache.geode.management.OSMetrics
- All Implemented Interfaces:
Serializable
Composite data type used to distribute metrics for the operating system hosting a member of the
distributed system.
- Since:
- GemFire 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOSMetrics(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. -
Method Summary
Modifier and TypeMethodDescriptiongetArch()Returns the hardware architecture.intReturns the number of available processors.longReturns the current number of megabytes of memory allocated.longReturns the number of megabytes of free memory available to the operating system.longReturns the number of megabytes of free swap space.longReturns the maximum number of open file descriptors allowed by the operating system.getName()Returns the name of the operating system.longReturns the current number of open file descriptors.longReturns the amount of time (in nanoseconds) used by the member's process.doubleReturns the system load average.longReturns the number of megabytes of memory available to the operating system.longReturns the number of megabytes of swap space allocated.Returns the version of the operating system.toString()String representation of OSMetrics
-
Constructor Details
-
OSMetrics
@ConstructorProperties({"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) This constructor is to be used by internal JMX framework only. User should not try to create an instance of this class.- Parameters:
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 average
-
-
Method Details
-
getMaxFileDescriptorCount
public long getMaxFileDescriptorCount()Returns the maximum number of open file descriptors allowed by the operating system.- Returns:
- the maximum number of open file descriptors allowed by the operating system
-
getOpenFileDescriptorCount
public long getOpenFileDescriptorCount()Returns the current number of open file descriptors.- Returns:
- the current number of open file descriptors
-
getProcessCpuTime
public long getProcessCpuTime()Returns the amount of time (in nanoseconds) used by the member's process.- Returns:
- the amount of time (in nanoseconds) used by the member's process
-
getCommittedVirtualMemorySize
public long getCommittedVirtualMemorySize()Returns the current number of megabytes of memory allocated.- Returns:
- the current number of megabytes of memory allocated
-
getTotalPhysicalMemorySize
public long getTotalPhysicalMemorySize()Returns the number of megabytes of memory available to the operating system.- Returns:
- the number of megabytes of free memory available to the operating system
-
getFreePhysicalMemorySize
public long getFreePhysicalMemorySize()Returns the number of megabytes of free memory available to the operating system.- Returns:
- the number of megabytes of free memory available to the operating system
-
getTotalSwapSpaceSize
public long getTotalSwapSpaceSize()Returns the number of megabytes of swap space allocated.- Returns:
- the number of megabytes of swap space allocated
-
getFreeSwapSpaceSize
public long getFreeSwapSpaceSize()Returns the number of megabytes of free swap space.- Returns:
- the number of megabytes of free swap space
-
getName
Returns the name of the operating system.- Returns:
- the name of the operating system
-
getVersion
Returns the version of the operating system.- Returns:
- the version of the operating system
-
getArch
Returns the hardware architecture.- Returns:
- the hardware architecture
-
getAvailableProcessors
public int getAvailableProcessors()Returns the number of available processors.- Returns:
- the number of available processors
-
getSystemLoadAverage
public double getSystemLoadAverage()Returns the system load average.- Returns:
- the system load average
-
toString
String representation of OSMetrics
-