Package com.streambase.sb.monitor
Class SystemInfo.GCInfo
java.lang.Object
com.streambase.sb.monitor.SystemInfo.GCInfo
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- SystemInfo
Information about GC collectors in the JVM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
long
Returns the total number of collections that have occurred since the JVM started.long
Returns the number of collections that have occurred since the previous Snapshot.long
Returns the approximate accumulated collection elapsed time in milliseconds since the JVM started.long
Returns the approximate collection time in milliseconds for this cycle.getName()
Get the JVM name for the garbage collector
-
Constructor Details
-
GCInfo
Constructor- Parameters:
name
- JVM name
-
-
Method Details
-
getName
Get the JVM name for the garbage collector- Returns:
- The JVM name for the garbage collector
- Since:
- 7.1.0
-
getGCCount
public long getGCCount()Returns the total number of collections that have occurred since the JVM started. This method returns -1 if the collection count is undefined for this collector.- Returns:
- the total number of collections that have occurred.
- Since:
- 7.1.0
-
getGCCountDelta
public long getGCCountDelta()Returns the number of collections that have occurred since the previous Snapshot. This method returns -1 if the collection count is undefined for this collector.- Returns:
- number of collections done in this cycle
- Since:
- 7.1.0
-
getGCTimeMS
public long getGCTimeMS()Returns the approximate accumulated collection elapsed time in milliseconds since the JVM started. This method returns -1 if the collection elapsed time is undefined for this collector.- Returns:
- the approximate accumulated collection elapsed time in milliseconds.
- Since:
- 7.1.0
-
getGCTimeMSDelta
public long getGCTimeMSDelta()Returns the approximate collection time in milliseconds for this cycle. This method returns -1 if the collection elapsed time is undefined for this collector.- Returns:
- the approximate collection time in milliseconds done in this cycle
- Since:
- 7.1.0
-
clone
-