com.sleepycat.utilint
Class ActivityCounter
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivityCounter
public ActivityCounter(int activeThreshold,
long requiredIntervalMillis,
int maxNumDumps,
Logger logger)
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.