Package com.gigaspaces.internal.jvm
Class JVMStatistics
java.lang.Object
com.gigaspaces.internal.jvm.JVMStatistics
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
- Author:
- kimchy
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJVMStatistics(long timestamp, long uptime, long memoryHeapCommitted, long memoryHeapUsed, long memoryNonHeapCommitted, long memoryNonHeapUsed, int threadCount, int peakThreadCount, long gcCollectionCount, long gcCollectionTime, double cpuPerc, long cpuTotal, long cpuTime) -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeCpuPerc(JVMStatistics lastJVMStatistics) longlonglonglonglonglongintintlonglongbooleanisNA()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
-
JVMStatistics
public JVMStatistics() -
JVMStatistics
public JVMStatistics(long timestamp, long uptime, long memoryHeapCommitted, long memoryHeapUsed, long memoryNonHeapCommitted, long memoryNonHeapUsed, int threadCount, int peakThreadCount, long gcCollectionCount, long gcCollectionTime, double cpuPerc, long cpuTotal, long cpuTime)
-
-
Method Details
-
isNA
public boolean isNA() -
getTimestamp
public long getTimestamp() -
getUptime
public long getUptime() -
getMemoryHeapCommitted
public long getMemoryHeapCommitted() -
getMemoryHeapUsed
public long getMemoryHeapUsed() -
getMemoryNonHeapCommitted
public long getMemoryNonHeapCommitted() -
getMemoryNonHeapUsed
public long getMemoryNonHeapUsed() -
getThreadCount
public int getThreadCount() -
getPeakThreadCount
public int getPeakThreadCount() -
getGcCollectionCount
public long getGcCollectionCount() -
getGcCollectionTime
public long getGcCollectionTime() -
computeCpuPerc
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-