org.apache.wicket.protocol.http
Interface IRequestLogger

All Known Implementing Classes:
RequestLogger

public interface IRequestLogger

Interface for the request logger and viewer.

Author:
jcompagner
See Also:
Application.newRequestLogger()

Nested Class Summary
static class IRequestLogger.RequestData
          This class hold the information one request of a session has.
 
Method Summary
 int getCurrentActiveRequestCount()
           
 RequestLogger.SessionData[] getLiveSessions()
           
 int getPeakActiveRequestCount()
           
 int getPeakSessions()
           
 List<IRequestLogger.RequestData> getRequests()
          This method returns a List of the current requests that are in mem.
 int getTotalCreatedSessions()
           
 void logEventTarget(IRequestTarget target)
          Sets the target that was the event target for the current request
 void logResponseTarget(IRequestTarget 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 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

getTotalCreatedSessions

int getTotalCreatedSessions()
Returns:
The total created sessions counter

getPeakSessions

int getPeakSessions()
Returns:
The peak sessions counter

getRequests

List<IRequestLogger.RequestData> getRequests()
This method returns a List of the current requests that are in mem. This is a readonly list.

Returns:
Collection of the current requests

getLiveSessions

RequestLogger.SessionData[] getLiveSessions()
Returns:
Collection of live Sessions Data

getCurrentActiveRequestCount

int getCurrentActiveRequestCount()
Returns:
The current active requests

getPeakActiveRequestCount

int getPeakActiveRequestCount()
Returns:
The peak active requests

sessionCreated

void sessionCreated(String id)
called when the session is created and has an id. (for http it means that the http session is created)

Parameters:
id - the session id

sessionDestroyed

void sessionDestroyed(String sessionId)
Method used to cleanup a livesession when the session was invalidated by the webcontainer

Parameters:
sessionId - the session id

requestTime

void requestTime(long timeTaken)
This method is called when the request is over. This will set the total time a request takes and cleans up the current request data.

Parameters:
timeTaken - the time taken in milliseconds

objectRemoved

void objectRemoved(Object value)
Called to monitor removals of objects out of the ISessionStore

Parameters:
value - the object being removed

objectUpdated

void objectUpdated(Object value)
Called to monitor updates of objects in the ISessionStore

Parameters:
value - the object being updated

objectCreated

void objectCreated(Object value)
Called to monitor additions of objects in the ISessionStore

Parameters:
value - the object being created/added

logResponseTarget

void logResponseTarget(IRequestTarget target)
Sets the target that was the response target for the current request

Parameters:
target - the response target

logEventTarget

void logEventTarget(IRequestTarget target)
Sets the target that was the event target for the current request

Parameters:
target - the event target


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.