net.wgen.op.logging
Class Snapshot
java.lang.Object
net.wgen.op.logging.Snapshot
- public class Snapshot
- extends java.lang.Object
Aggregator of stats to log every so often for an indication of load.
- Version:
- $Id: Snapshot.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
- Author:
- Paul Feuer, Wireless Generation, Inc.
|
Constructor Summary |
Snapshot(java.lang.String appName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_snapShotPerApp
private static final java.util.Map _snapShotPerApp
SDF
public static final java.text.SimpleDateFormat SDF
IS_PROD
private static final boolean IS_PROD
RESET_INTERVAL
private static final long RESET_INTERVAL
- See Also:
- Constant Field Values
THRESH_ROWS
private static final int THRESH_ROWS
THRESH_CX
private static final int THRESH_CX
THRESH_CALLS
private static final int THRESH_CALLS
_resetTime
private static long _resetTime
TIMER
private static final java.util.Timer TIMER
LOG
private static final org.apache.log4j.Logger LOG
moduleName
private java.lang.String moduleName
rowsAccessed
private int rowsAccessed
opsExecuted
private int opsExecuted
dbCallsExecuted
private int dbCallsExecuted
connectionsUsed
private int connectionsUsed
requestsMade
private int requestsMade
dbErrorsOccurred
private int dbErrorsOccurred
reqErrorsOccurred
private int reqErrorsOccurred
databaseTime
private int databaseTime
requestTime
private int requestTime
traceRequests
private int traceRequests
profileRequests
private int profileRequests
tempKeysUsed
private int tempKeysUsed
Snapshot
public Snapshot(java.lang.String appName)
aggregateCall
public static void aggregateCall(WebAppStats.DBCallRecord rec)
aggregateRequest
public static void aggregateRequest(TraceKey key)
reset
public void reset()
toString
public java.lang.String toString()
getSnapshot
private static Snapshot getSnapshot(java.lang.String appName)
- Parameters:
appName -
- Returns:
- the snapshot for the app
dumpSnapshot
private static void dumpSnapshot()
- Internal dump method.