com.sleepycat.utilint
Class ActivityCounter

java.lang.Object
  extended by com.sleepycat.utilint.ActivityCounter

public class ActivityCounter
extends Object

Tracks the number of operations begun, as a way of measuring level of activity. Is capable of displaying thread dumps if the activity level reaches a specified ceiling


Constructor Summary
ActivityCounter(int activeThreshold, long requiredIntervalMillis, int maxNumDumps, Logger logger)
           
 
Method Summary
 void finish()
           
 int getAndClearMaxActivity()
           
 int getNumCompletedDumps()
          For unit test support.
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityCounter

public ActivityCounter(int activeThreshold,
                       long requiredIntervalMillis,
                       int maxNumDumps,
                       Logger logger)
Method Detail

start

public void start()

finish

public void finish()

getAndClearMaxActivity

public int getAndClearMaxActivity()

getNumCompletedDumps

public int getNumCompletedDumps()
For unit test support.



Copyright (c) 2004-2012 Oracle. All rights reserved.