public class ERXStatisticsStore
extends com.webobjects.appserver.WOStatisticsStore
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.ERXSession.threadName()}| Name | Description |
|---|---|
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 |
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor| Modifier and Type | Field and Description |
|---|---|
protected static Field |
initMemoryField |
protected NSMutableArray<com.webobjects.appserver.WOSession> |
sessions |
| Constructor and Description |
|---|
ERXStatisticsStore() |
ERXStatisticsStore(IERXStatisticsStoreListener listener)
Create a statistics store with a custom listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_applicationCreatedSession(com.webobjects.appserver.WOSession wosession) |
protected void |
_sessionTerminating(com.webobjects.appserver.WOSession wosession) |
NSArray<com.webobjects.appserver.WOSession> |
activeSessions() |
void |
applicationDidHandleComponentActionRequestWithPageNamed(String aString) |
void |
applicationDidHandleDirectActionRequestWithActionNamed(String aString) |
void |
applicationDidHandleWebServiceRequestWithActionNamed(String aString) |
void |
applicationWillHandleComponentActionRequest() |
void |
applicationWillHandleDirectActionRequest() |
void |
applicationWillHandleWebServiceRequest() |
HashMap |
getAverageSessionMemory() |
NSDictionary |
statistics() |
Object |
valueForKey(String s) |
_password, canAccessFieldsDirectly, descriptionForResponse, formatDescription, getApplicationlastAccessTime, getAverageCATransactionTime, getAverageDATransactionTime, getAverageIdleTime, getAverageRequestsPerSession, getAverageTransactionTime, getAverageWSTransactionTime, getDirectActionStatistics, getLastSessionStatistics, getMemoryUsage, getMovingAverageIdleTime, getMovingAverageRequestsPerSession, getMovingAverageSessionLife, getMovingAverageTransactionTime, getPagesStatistics, getPathsStatistics, getSessionMovingAverageSampleSize, getStatisticStoreSessionMax, getTransactionMovingAverageSampleSize, getWebServiceStatistics, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, lastSessionStatistics, logFile, logFileRotationFrequency, logFileRotationFrequencyInDays, logString, memoryUsage, recordStatisticsForResponse, sessionMovingAverageSampleSize, setApplicationLastAccessTime, setLogFile, setLogFile, setPassword, setSessionMovingAverageSampleSize, setTransactionMovingAverageSampleSize, takeValueForKey, takeValueForKeyPath, transactionMovingAverageSampleSize, unableToSetNullForKey, validateLogin, valueForKeyPathprotected static Field initMemoryField
protected NSMutableArray<com.webobjects.appserver.WOSession> sessions
public ERXStatisticsStore()
public ERXStatisticsStore(IERXStatisticsStoreListener listener)
listener - a customer listener to do something 'special' when requests are slowpublic NSDictionary statistics()
statistics in class com.webobjects.appserver.WOStatisticsStoreprotected void _applicationCreatedSession(com.webobjects.appserver.WOSession wosession)
_applicationCreatedSession in class com.webobjects.appserver.WOStatisticsStoreprotected void _sessionTerminating(com.webobjects.appserver.WOSession wosession)
_sessionTerminating in class com.webobjects.appserver.WOStatisticsStorepublic NSArray<com.webobjects.appserver.WOSession> activeSessions()
public void applicationWillHandleComponentActionRequest()
applicationWillHandleComponentActionRequest in class com.webobjects.appserver.WOStatisticsStorepublic void applicationDidHandleComponentActionRequestWithPageNamed(String aString)
applicationDidHandleComponentActionRequestWithPageNamed in class com.webobjects.appserver.WOStatisticsStorepublic void applicationWillHandleDirectActionRequest()
applicationWillHandleDirectActionRequest in class com.webobjects.appserver.WOStatisticsStorepublic void applicationDidHandleDirectActionRequestWithActionNamed(String aString)
applicationDidHandleDirectActionRequestWithActionNamed in class com.webobjects.appserver.WOStatisticsStorepublic void applicationWillHandleWebServiceRequest()
applicationWillHandleWebServiceRequest in class com.webobjects.appserver.WOStatisticsStorepublic void applicationDidHandleWebServiceRequestWithActionNamed(String aString)
applicationDidHandleWebServiceRequestWithActionNamed in class com.webobjects.appserver.WOStatisticsStorepublic Object valueForKey(String s)
valueForKey in interface com.webobjects.foundation.NSKeyValueCodingvalueForKey in class com.webobjects.appserver.WOStatisticsStorepublic HashMap getAverageSessionMemory()
getAverageSessionMemory in interface com.webobjects.appserver.WOStatisticsStoreMBeangetAverageSessionMemory in class com.webobjects.appserver.WOStatisticsStoreCopyright © 2002 – 2020 Project Wonder.