Project Wonder 5.0

er.extensions.statistics
Class ERXStatisticsStore

java.lang.Object
  extended by com.webobjects.appserver.WOStatisticsStore
      extended by er.extensions.statistics.ERXStatisticsStore
All Implemented Interfaces:
com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions

public class ERXStatisticsStore
extends com.webobjects.appserver.WOStatisticsStore

Enhances the normal stats store with a bunch of useful things which get displayed in the ERXStatisticsPage.

In order to turn on this functionality, you must make this call in your Application null constructor:

this.setStatisticsStore(new ERXStatisticsStore());
Then configure the behavior of this class with the three properties that determine how much it logs and when it logs.

Author:
ak, kieran (Oct 14, 2009) - minor changes to capture thread name in middle of the request (useful for ERXSession#threadName()
Properties
er.extensions.ERXStatisticsStore.milliSeconds.warn defaults to 2000 ms
           
er.extensions.ERXStatisticsStore.milliSeconds.error defaults to 10 seconds
           
er.extensions.ERXStatisticsStore.milliSeconds.fatal defaults to 5 minutes
           

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Field Summary
protected  com.webobjects.foundation.NSMutableArray sessions
           
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
ERXStatisticsStore()
           
 
Method Summary
protected  void _applicationCreatedSession(com.webobjects.appserver.WOSession wosession)
           
protected  void _sessionTerminating(com.webobjects.appserver.WOSession wosession)
           
 com.webobjects.foundation.NSArray activeSession()
           
 void applicationDidHandleComponentActionRequestWithPageNamed(java.lang.String aString)
           
 void applicationDidHandleDirectActionRequestWithActionNamed(java.lang.String aString)
           
 void applicationDidHandleWebServiceRequestWithActionNamed(java.lang.String aString)
           
 void applicationWillHandleComponentActionRequest()
           
 void applicationWillHandleDirectActionRequest()
           
 void applicationWillHandleWebServiceRequest()
           
 com.webobjects.foundation.NSDictionary statistics()
           
 java.lang.Object valueForKey(java.lang.String s)
           
 
Methods inherited from class com.webobjects.appserver.WOStatisticsStore
_password, _statisticStoreSessionMax, canAccessFieldsDirectly, descriptionForResponse, formatDescription, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, logFile, logFileRotationFrequency, logFileRotationFrequencyInDays, logString, memoryUsage, recordStatisticsForResponse, sessionMovingAverageSampleSize, setLogFile, setLogFile, setPassword, setSessionMovingAverageSampleSize, setTransactionMovingAverageSampleSize, takeValueForKey, takeValueForKeyPath, transactionMovingAverageSampleSize, unableToSetNullForKey, validateLogin, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessions

protected com.webobjects.foundation.NSMutableArray sessions
Constructor Detail

ERXStatisticsStore

public ERXStatisticsStore()
Method Detail

statistics

public com.webobjects.foundation.NSDictionary statistics()
Overrides:
statistics in class com.webobjects.appserver.WOStatisticsStore

_applicationCreatedSession

protected void _applicationCreatedSession(com.webobjects.appserver.WOSession wosession)
Overrides:
_applicationCreatedSession in class com.webobjects.appserver.WOStatisticsStore

_sessionTerminating

protected void _sessionTerminating(com.webobjects.appserver.WOSession wosession)
Overrides:
_sessionTerminating in class com.webobjects.appserver.WOStatisticsStore

activeSession

public com.webobjects.foundation.NSArray activeSession()

applicationWillHandleComponentActionRequest

public void applicationWillHandleComponentActionRequest()
Overrides:
applicationWillHandleComponentActionRequest in class com.webobjects.appserver.WOStatisticsStore

applicationDidHandleComponentActionRequestWithPageNamed

public void applicationDidHandleComponentActionRequestWithPageNamed(java.lang.String aString)
Overrides:
applicationDidHandleComponentActionRequestWithPageNamed in class com.webobjects.appserver.WOStatisticsStore

applicationWillHandleDirectActionRequest

public void applicationWillHandleDirectActionRequest()
Overrides:
applicationWillHandleDirectActionRequest in class com.webobjects.appserver.WOStatisticsStore

applicationDidHandleDirectActionRequestWithActionNamed

public void applicationDidHandleDirectActionRequestWithActionNamed(java.lang.String aString)
Overrides:
applicationDidHandleDirectActionRequestWithActionNamed in class com.webobjects.appserver.WOStatisticsStore

applicationWillHandleWebServiceRequest

public void applicationWillHandleWebServiceRequest()
Overrides:
applicationWillHandleWebServiceRequest in class com.webobjects.appserver.WOStatisticsStore

applicationDidHandleWebServiceRequestWithActionNamed

public void applicationDidHandleWebServiceRequestWithActionNamed(java.lang.String aString)
Overrides:
applicationDidHandleWebServiceRequestWithActionNamed in class com.webobjects.appserver.WOStatisticsStore

valueForKey

public java.lang.Object valueForKey(java.lang.String s)
Specified by:
valueForKey in interface com.webobjects.foundation.NSKeyValueCoding
Overrides:
valueForKey in class com.webobjects.appserver.WOStatisticsStore

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.