wt.fc
Class WTObjectCounter

java.lang.Object
  extended bywt.fc.WTObjectCounter

public class WTObjectCounter
extends Object


Nested Class Summary
(package private)  class WTObjectCounter.Counter
           
 
Field Summary
private  WTObjectCounter.Counter baseCounter
           
private  HashMap classHash
           
private static ThreadLocal counter
           
static boolean ENABLED
           
static int HEAP_CHECK_PERIOD
           
static Object KEY
           
private  String threadName
           
private  int triggerCount
           
private static boolean VERBOSE
           
private static boolean VERBOSE_FINALIZATION
           
 
Constructor Summary
WTObjectCounter()
           
 
Method Summary
 void decrement(Class clazz)
           
protected  void finalize()
           
 int getFinalized()
           
 int getLiveReferenceCount()
           
 int getMaterialized()
           
 String getThreadName()
           
static WTObjectCounter getWTObjectCounter()
           
 void increment(Class clazz)
           
static void resetWTObjectCounter()
           
 String toString()
           
 boolean triggerHeapCheck()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

baseCounter

private WTObjectCounter.Counter baseCounter

classHash

private HashMap classHash

threadName

private String threadName

triggerCount

private int triggerCount

KEY

public static final Object KEY

counter

private static ThreadLocal counter

VERBOSE

private static final boolean VERBOSE

ENABLED

public static final boolean ENABLED

VERBOSE_FINALIZATION

private static final boolean VERBOSE_FINALIZATION

HEAP_CHECK_PERIOD

public static final int HEAP_CHECK_PERIOD
Constructor Detail

WTObjectCounter

public WTObjectCounter()
Method Detail

getWTObjectCounter

public static WTObjectCounter getWTObjectCounter()

resetWTObjectCounter

public static void resetWTObjectCounter()

increment

public void increment(Class clazz)

decrement

public void decrement(Class clazz)

getLiveReferenceCount

public int getLiveReferenceCount()

getMaterialized

public int getMaterialized()

getFinalized

public int getFinalized()

getThreadName

public String getThreadName()

finalize

protected void finalize()
                 throws Throwable
Throws:
Throwable

triggerHeapCheck

public boolean triggerHeapCheck()

toString

public String toString()