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()
GarbageCollectorStats
getMajorCollectionCount
in interface GarbageCollectorStats
GarbageCollectorStats.getUnknownCollectionCount()
public long getMajorCollectionTime()
GarbageCollectorStats
getMajorCollectionTime
in interface GarbageCollectorStats
GarbageCollectorStats.getUnknownCollectionTime()
public long getMinorCollectionCount()
GarbageCollectorStats
getMinorCollectionCount
in interface GarbageCollectorStats
GarbageCollectorStats.getUnknownCollectionCount()
public long getMinorCollectionTime()
GarbageCollectorStats
getMinorCollectionTime
in interface GarbageCollectorStats
GarbageCollectorStats.getUnknownCollectionTime()
public long getUnknownCollectionCount()
GarbageCollectorStats
getUnknownCollectionCount
in interface GarbageCollectorStats
public long getUnknownCollectionTime()
GarbageCollectorStats
getUnknownCollectionTime
in interface GarbageCollectorStats
public 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()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.