public class LocalGCStatsImpl extends Object implements LocalGCStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalGCStatsImpl() |
LocalGCStatsImpl(GarbageCollectorStats gcStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
long |
getCreationTime()
Returns the creation time of this distributed object instance on this member.
|
long |
getMajorCollectionCount()
Returns major collection count.
|
long |
getMajorCollectionTime()
Returns total major collection time in ms.
|
long |
getMinorCollectionCount()
Returns minor collection count.
|
long |
getMinorCollectionTime()
Returns total minor collection time in ms.
|
long |
getUnknownCollectionCount()
Returns collection count which cannot be identified as major or minor.
|
long |
getUnknownCollectionTime()
Returns total collection time which cannot be identified as major or minor.
|
void |
setMajorCount(long majorCount) |
void |
setMajorTime(long majorTime) |
void |
setMinorCount(long minorCount) |
void |
setMinorTime(long minorTime) |
void |
setUnknownCount(long unknownCount) |
void |
setUnknownTime(long unknownTime) |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public LocalGCStatsImpl()
public LocalGCStatsImpl(GarbageCollectorStats gcStats)
public long getMajorCollectionCount()
GarbageCollectorStatsgetMajorCollectionCount in interface GarbageCollectorStatsGarbageCollectorStats.getUnknownCollectionCount()public long getMajorCollectionTime()
GarbageCollectorStatsgetMajorCollectionTime in interface GarbageCollectorStatsGarbageCollectorStats.getUnknownCollectionTime()public long getMinorCollectionCount()
GarbageCollectorStatsgetMinorCollectionCount in interface GarbageCollectorStatsGarbageCollectorStats.getUnknownCollectionCount()public long getMinorCollectionTime()
GarbageCollectorStatsgetMinorCollectionTime in interface GarbageCollectorStatsGarbageCollectorStats.getUnknownCollectionTime()public long getUnknownCollectionCount()
GarbageCollectorStatsgetUnknownCollectionCount in interface GarbageCollectorStatspublic long getUnknownCollectionTime()
GarbageCollectorStatsgetUnknownCollectionTime in interface GarbageCollectorStatspublic void setMinorCount(long minorCount)
public void setMinorTime(long minorTime)
public void setMajorCount(long majorCount)
public void setMajorTime(long majorTime)
public void setUnknownCount(long unknownCount)
public void setUnknownTime(long unknownTime)
public long getCreationTime()
LocalInstanceStatsgetCreationTime in interface LocalInstanceStatspublic JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.