Package com.gigaspaces.internal.os
Class OSStatistics
java.lang.Object
com.gigaspaces.internal.os.OSStatistics
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOSStatistics(long timestamp, long freeSwapSpaceSize, long freePhysicalMemorySize) OSStatistics(long timestamp, long freeSwapSpaceSize, long freePhysicalMemorySize, long actualFreePhysicalMemorySize, double cpuPerc, long actualMemoryUsed, double usedMemoryPerc, OSStatistics.OSNetInterfaceStats[] netStats) -
Method Summary
Modifier and TypeMethodDescriptionlonglongdoublelonglonglongdoublebooleanisNA()voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
OSStatistics
public OSStatistics() -
OSStatistics
public OSStatistics(long timestamp, long freeSwapSpaceSize, long freePhysicalMemorySize) -
OSStatistics
public OSStatistics(long timestamp, long freeSwapSpaceSize, long freePhysicalMemorySize, long actualFreePhysicalMemorySize, double cpuPerc, long actualMemoryUsed, double usedMemoryPerc, OSStatistics.OSNetInterfaceStats[] netStats)
-
-
Method Details
-
getActualMemoryUsed
public long getActualMemoryUsed()- Returns:
- used memory in bytes
- Since:
- 10.1
-
getUsedMemoryPerc
public double getUsedMemoryPerc()- Returns:
- used memory in percents, value can be from 0 to 1
- Since:
- 10.1
-
isNA
public boolean isNA() -
getTimestamp
public long getTimestamp() -
getFreeSwapSpaceSize
public long getFreeSwapSpaceSize() -
getFreePhysicalMemorySize
public long getFreePhysicalMemorySize() -
getActualFreePhysicalMemorySize
public long getActualFreePhysicalMemorySize() -
getCpuPerc
public double getCpuPerc() -
getNetStats
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-