net.wgen.op.logging
Class WebAppStats

java.lang.Object
  extended bynet.wgen.op.logging.WebAppStats

public class WebAppStats
extends java.lang.Object

Version:
$Id: WebAppStats.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Nested Class Summary
protected static class WebAppStats.DBCallRecord
          Helper class for reusing methods that are carring the same in formation from disparate places.
 
Field Summary
private static WebAppStats _self
          The Singleton instance of the class.
private static int DB_WARN_THRESH_ROW_COUNT
           
private static int DB_WARN_THRESH_TOTAL_DB
           
static java.lang.String DELIMITER
           
private static org.apache.log4j.Logger LOG
           
private static int REQ_WARN_THRESH_CX
           
private static int REQ_WARN_THRESH_TOTAL_CALLS
           
private static int REQ_WARN_THRESH_TOTAL_DB
           
private static int REQ_WARN_THRESH_TOTAL_MS
           
private static int REQ_WARN_THRESH_TOTAL_OPS
           
static java.text.SimpleDateFormat SDF
           
private static java.util.List SKIP_LIST
           
static java.lang.String TAG_DB
           
static java.lang.String TAG_DBU
           
static java.lang.String TAG_REQ
           
static java.lang.String TAG_TMP
           
 
Constructor Summary
private WebAppStats()
          Private, no-arg constructor to limit creation to singleton accessor.
 
Method Summary
static WebAppStats getInstance()
          Singleton accessor.
 java.util.List getSkipList()
           
 void logCall(java.lang.String tag, DatabaseCall call)
           
private static void logCall(WebAppStats.DBCallRecord rec)
           
 void logRequestCompletion(TraceKey traceKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQ_WARN_THRESH_CX

private static final int REQ_WARN_THRESH_CX
See Also:
Constant Field Values

REQ_WARN_THRESH_TOTAL_CALLS

private static final int REQ_WARN_THRESH_TOTAL_CALLS
See Also:
Constant Field Values

REQ_WARN_THRESH_TOTAL_OPS

private static final int REQ_WARN_THRESH_TOTAL_OPS
See Also:
Constant Field Values

REQ_WARN_THRESH_TOTAL_MS

private static final int REQ_WARN_THRESH_TOTAL_MS
See Also:
Constant Field Values

REQ_WARN_THRESH_TOTAL_DB

private static final int REQ_WARN_THRESH_TOTAL_DB
See Also:
Constant Field Values

DB_WARN_THRESH_ROW_COUNT

private static final int DB_WARN_THRESH_ROW_COUNT
See Also:
Constant Field Values

DB_WARN_THRESH_TOTAL_DB

private static final int DB_WARN_THRESH_TOTAL_DB
See Also:
Constant Field Values

LOG

private static org.apache.log4j.Logger LOG

SKIP_LIST

private static final java.util.List SKIP_LIST

DELIMITER

public static final java.lang.String DELIMITER
See Also:
Constant Field Values

SDF

public static final java.text.SimpleDateFormat SDF

TAG_REQ

public static final java.lang.String TAG_REQ
See Also:
Constant Field Values

TAG_TMP

public static final java.lang.String TAG_TMP
See Also:
Constant Field Values

TAG_DB

public static final java.lang.String TAG_DB
See Also:
Constant Field Values

TAG_DBU

public static final java.lang.String TAG_DBU
See Also:
Constant Field Values

_self

private static WebAppStats _self
The Singleton instance of the class.

Constructor Detail

WebAppStats

private WebAppStats()
Private, no-arg constructor to limit creation to singleton accessor.

Method Detail

getInstance

public static WebAppStats getInstance()
Singleton accessor.


getSkipList

public java.util.List getSkipList()

logRequestCompletion

public void logRequestCompletion(TraceKey traceKey)
Parameters:
traceKey -

logCall

public void logCall(java.lang.String tag,
                    DatabaseCall call)
Parameters:
tag -
call -

logCall

private static void logCall(WebAppStats.DBCallRecord rec)
Parameters:
rec -