|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRequestLogger
Interface for the request logger and viewer.
Application.newRequestLogger()
Nested Class Summary | |
---|---|
static interface |
IRequestLogger.ISessionLogInfo
This interface can be implemented in a custom session object. |
static class |
IRequestLogger.RequestData
This class hold the information one request of a session has. |
static class |
IRequestLogger.SessionData
This class hold the information one request of a session has. |
Method Summary | |
---|---|
long |
getAverageRequestTime()
|
int |
getCurrentActiveRequestCount()
|
IRequestLogger.SessionData[] |
getLiveSessions()
|
int |
getPeakActiveRequestCount()
|
int |
getPeakSessions()
|
java.util.List<IRequestLogger.RequestData> |
getRequests()
This method returns a List of the current requests that are in mem. |
long |
getRequestsPerMinute()
|
int |
getTotalCreatedSessions()
|
void |
logEventTarget(IRequestHandler target)
Sets the target that was the event target for the current request |
void |
logRequestedUrl(java.lang.String url)
Logs the URL that was requested by the browser. |
void |
logResponseTarget(IRequestHandler target)
Sets the target that was the response target for the current request |
void |
objectCreated(java.lang.Object value)
Called to monitor additions of objects in the ISessionStore |
void |
objectRemoved(java.lang.Object value)
Called to monitor removals of objects out of the ISessionStore |
void |
objectUpdated(java.lang.Object value)
Called to monitor updates of objects in the ISessionStore |
void |
requestTime(long timeTaken)
This method is called when the request is over. |
void |
sessionCreated(java.lang.String id)
called when the session is created and has an id. |
void |
sessionDestroyed(java.lang.String sessionId)
Method used to cleanup a livesession when the session was invalidated by the webcontainer |
Method Detail |
---|
int getTotalCreatedSessions()
int getPeakSessions()
java.util.List<IRequestLogger.RequestData> getRequests()
IRequestLogger.SessionData[] getLiveSessions()
int getCurrentActiveRequestCount()
int getPeakActiveRequestCount()
long getRequestsPerMinute()
long getAverageRequestTime()
void sessionCreated(java.lang.String id)
id
- the session idvoid sessionDestroyed(java.lang.String sessionId)
sessionId
- the session idvoid requestTime(long timeTaken)
timeTaken
- the time taken in millisecondsvoid objectRemoved(java.lang.Object value)
ISessionStore
value
- the object being removedvoid objectUpdated(java.lang.Object value)
ISessionStore
value
- the object being updatedvoid objectCreated(java.lang.Object value)
ISessionStore
value
- the object being created/addedvoid logResponseTarget(IRequestHandler target)
target
- the response targetvoid logEventTarget(IRequestHandler target)
target
- the event targetvoid logRequestedUrl(java.lang.String url)
url
- the requested URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |