public class ERXStatisticsStore extends 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 |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
Modifier and Type | Field and Description |
---|---|
protected static Field |
initMemoryField |
protected NSMutableArray<WOSession> |
sessions |
_applicationLastAccessTime
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
Constructor and Description |
---|
ERXStatisticsStore() |
ERXStatisticsStore(IERXStatisticsStoreListener listener)
Create a statistics store with a custom listener.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_applicationCreatedSession(WOSession wosession) |
protected void |
_sessionTerminating(WOSession wosession) |
NSArray<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, valueForKeyPath
protected static Field initMemoryField
protected NSMutableArray<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 WOStatisticsStore
protected void _applicationCreatedSession(WOSession wosession)
_applicationCreatedSession
in class WOStatisticsStore
protected void _sessionTerminating(WOSession wosession)
_sessionTerminating
in class WOStatisticsStore
public void applicationWillHandleComponentActionRequest()
applicationWillHandleComponentActionRequest
in class WOStatisticsStore
public void applicationDidHandleComponentActionRequestWithPageNamed(String aString)
applicationDidHandleComponentActionRequestWithPageNamed
in class WOStatisticsStore
public void applicationWillHandleDirectActionRequest()
applicationWillHandleDirectActionRequest
in class WOStatisticsStore
public void applicationDidHandleDirectActionRequestWithActionNamed(String aString)
applicationDidHandleDirectActionRequestWithActionNamed
in class WOStatisticsStore
public void applicationWillHandleWebServiceRequest()
applicationWillHandleWebServiceRequest
in class WOStatisticsStore
public void applicationDidHandleWebServiceRequestWithActionNamed(String aString)
applicationDidHandleWebServiceRequestWithActionNamed
in class WOStatisticsStore
public Object valueForKey(String s)
valueForKey
in interface NSKeyValueCoding
valueForKey
in class WOStatisticsStore
public HashMap getAverageSessionMemory()
getAverageSessionMemory
in interface WOStatisticsStoreMBean
getAverageSessionMemory
in class WOStatisticsStore
Copyright © 2002 – 2024 Project Wonder.