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()}| 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 |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._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 java.lang.reflect.Field |
initMemoryField |
protected static org.apache.log4j.Logger |
log |
protected NSMutableArray<WOSession> |
sessions |
_applicationLastAccessTime_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue| 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> |
activeSession()
Deprecated.
use
activeSessions() instead |
NSArray<WOSession> |
activeSessions() |
void |
applicationDidHandleComponentActionRequestWithPageNamed(java.lang.String aString) |
void |
applicationDidHandleDirectActionRequestWithActionNamed(java.lang.String aString) |
void |
applicationDidHandleWebServiceRequestWithActionNamed(java.lang.String aString) |
void |
applicationWillHandleComponentActionRequest() |
void |
applicationWillHandleDirectActionRequest() |
void |
applicationWillHandleWebServiceRequest() |
java.util.HashMap |
getAverageSessionMemory() |
NSDictionary |
statistics() |
java.lang.Object |
valueForKey(java.lang.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 final org.apache.log4j.Logger log
protected static java.lang.reflect.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 WOStatisticsStoreprotected void _applicationCreatedSession(WOSession wosession)
_applicationCreatedSession in class WOStatisticsStoreprotected void _sessionTerminating(WOSession wosession)
_sessionTerminating in class WOStatisticsStore@Deprecated public NSArray<WOSession> activeSession()
activeSessions() insteadpublic void applicationWillHandleComponentActionRequest()
applicationWillHandleComponentActionRequest in class WOStatisticsStorepublic void applicationDidHandleComponentActionRequestWithPageNamed(java.lang.String aString)
applicationDidHandleComponentActionRequestWithPageNamed in class WOStatisticsStorepublic void applicationWillHandleDirectActionRequest()
applicationWillHandleDirectActionRequest in class WOStatisticsStorepublic void applicationDidHandleDirectActionRequestWithActionNamed(java.lang.String aString)
applicationDidHandleDirectActionRequestWithActionNamed in class WOStatisticsStorepublic void applicationWillHandleWebServiceRequest()
applicationWillHandleWebServiceRequest in class WOStatisticsStorepublic void applicationDidHandleWebServiceRequestWithActionNamed(java.lang.String aString)
applicationDidHandleWebServiceRequestWithActionNamed in class WOStatisticsStorepublic java.lang.Object valueForKey(java.lang.String s)
valueForKey in interface NSKeyValueCodingvalueForKey in class WOStatisticsStorepublic java.util.HashMap getAverageSessionMemory()
getAverageSessionMemory in interface WOStatisticsStoreMBeangetAverageSessionMemory in class WOStatisticsStoreCopyright © 2002 – 2022 Project Wonder.