com.hazelcast.monitor.impl
Class LocalGCStatsImpl

java.lang.Object
  extended by com.hazelcast.monitor.impl.LocalGCStatsImpl
All Implemented Interfaces:
JsonSerializable, GarbageCollectorStats, LocalGCStats, LocalInstanceStats

public class LocalGCStatsImpl
extends Object
implements LocalGCStats


Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Constructor Summary
LocalGCStatsImpl()
           
LocalGCStatsImpl(GarbageCollectorStats gcStats)
           
 
Method Summary
 boolean equals(Object o)
           
 void fromJson(com.eclipsesource.json.JsonObject json)
           
 long getCreationTime()
           
 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.
 int hashCode()
           
 void setMajorCount(long majorCount)
           
 void setMajorTime(long majorTime)
           
 void setMinorCount(long minorCount)
           
 void setMinorTime(long minorTime)
           
 void setUnknownCount(long unknownCount)
           
 void setUnknownTime(long unknownTime)
           
 com.eclipsesource.json.JsonObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalGCStatsImpl

public LocalGCStatsImpl()

LocalGCStatsImpl

public LocalGCStatsImpl(GarbageCollectorStats gcStats)
Method Detail

getMajorCollectionCount

public long getMajorCollectionCount()
Description copied from interface: GarbageCollectorStats
Returns major collection count.

Major collection is identified by matching heap memory region name with known names. If a collection cannot be matched then it's reported as unknown count.

Specified by:
getMajorCollectionCount in interface GarbageCollectorStats
Returns:
major collection count.
See Also:
GarbageCollectorStats.getUnknownCollectionCount()

getMajorCollectionTime

public long getMajorCollectionTime()
Description copied from interface: GarbageCollectorStats
Returns total major collection time in ms.

Major collection is identified by matching heap memory region name with known names. If a collection cannot be matched then it's reported as unknown count.

Specified by:
getMajorCollectionTime in interface GarbageCollectorStats
Returns:
total major collection count in ms.
See Also:
GarbageCollectorStats.getUnknownCollectionTime()

getMinorCollectionCount

public long getMinorCollectionCount()
Description copied from interface: GarbageCollectorStats
Returns minor collection count.

Minor collection is identified by matching heap memory region name with known names. If a collection cannot be matched then it's reported as unknown count.

Specified by:
getMinorCollectionCount in interface GarbageCollectorStats
Returns:
minor collection count.
See Also:
GarbageCollectorStats.getUnknownCollectionCount()

getMinorCollectionTime

public long getMinorCollectionTime()
Description copied from interface: GarbageCollectorStats
Returns total minor collection time in ms.

Minor collection is identified by matching heap memory region name with known names. If a collection cannot be matched then it's reported as unknown count.

Specified by:
getMinorCollectionTime in interface GarbageCollectorStats
Returns:
total minor collection count in ms.
See Also:
GarbageCollectorStats.getUnknownCollectionTime()

getUnknownCollectionCount

public long getUnknownCollectionCount()
Description copied from interface: GarbageCollectorStats
Returns collection count which cannot be identified as major or minor.

Specified by:
getUnknownCollectionCount in interface GarbageCollectorStats
Returns:
unidentified collection count.

getUnknownCollectionTime

public long getUnknownCollectionTime()
Description copied from interface: GarbageCollectorStats
Returns total collection time which cannot be identified as major or minor.

Specified by:
getUnknownCollectionTime in interface GarbageCollectorStats
Returns:
total unidentified collection time in ms.

setMinorCount

public void setMinorCount(long minorCount)

setMinorTime

public void setMinorTime(long minorTime)

setMajorCount

public void setMajorCount(long majorCount)

setMajorTime

public void setMajorTime(long majorTime)

setUnknownCount

public void setUnknownCount(long unknownCount)

setUnknownTime

public void setUnknownTime(long unknownTime)

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface LocalInstanceStats

toJson

public com.eclipsesource.json.JsonObject toJson()
Specified by:
toJson in interface JsonSerializable

fromJson

public void fromJson(com.eclipsesource.json.JsonObject json)
Specified by:
fromJson in interface JsonSerializable

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.