com.hazelcast.memory
Class DefaultGarbageCollectorStats

java.lang.Object
  extended by com.hazelcast.memory.DefaultGarbageCollectorStats
All Implemented Interfaces:
GarbageCollectorStats

public class DefaultGarbageCollectorStats
extends Object
implements GarbageCollectorStats

Default implementation of GarbageCollectorStats.


Constructor Summary
DefaultGarbageCollectorStats()
           
 
Method Summary
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGarbageCollectorStats

public DefaultGarbageCollectorStats()
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.

toString

public String toString()
Overrides:
toString in class Object


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