|
||||||||||
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()
|
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(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(Object value)
Called to monitor additions of objects in the ISessionStore |
void |
objectRemoved(Object value)
Called to monitor removals of objects out of the ISessionStore |
void |
objectUpdated(Object value)
Called to monitor updates of objects in the ISessionStore |
void |
performLogging()
Perform the actual logging |
void |
requestTime(long timeTaken)
This method is called when the request is over. |
void |
sessionCreated(String id)
called when the session is created and has an id. |
void |
sessionDestroyed(String sessionId)
Method used to cleanup a livesession when the session was invalidated by the webcontainer |
Method Detail |
---|
int getTotalCreatedSessions()
int getPeakSessions()
List<IRequestLogger.RequestData> getRequests()
IRequestLogger.SessionData[] getLiveSessions()
int getCurrentActiveRequestCount()
int getPeakActiveRequestCount()
long getRequestsPerMinute()
long getAverageRequestTime()
void sessionCreated(String id)
id
- the session idvoid sessionDestroyed(String sessionId)
sessionId
- the session idvoid requestTime(long timeTaken)
timeTaken
- the time taken in millisecondsvoid objectRemoved(Object value)
ISessionStore
value
- the object being removedvoid objectUpdated(Object value)
ISessionStore
value
- the object being updatedvoid objectCreated(Object value)
ISessionStore
value
- the object being created/addedvoid logResponseTarget(IRequestHandler target)
target
- the response targetvoid logEventTarget(IRequestHandler target)
target
- the event targetvoid logRequestedUrl(String url)
url
- the requested URLvoid performLogging()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |