|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.protocol.http.DummyRequestLogger
public class DummyRequestLogger
This is the logger class that can be set in the
Application.getRequestLogger()
method. If this class
is set all request and live sessions will be recorded and displayed From the total created
sessions, to the peak session count and the current live sessions. For the live sessions the
request logger will record what request are happening what kind of IRequestHandler
was
the event target and what IRequestHandler
was the response target. It also records what
session data was touched for this and how long the request did take.
To view this information live see the InspectorBug
that shows the InspectorPage
with the LiveSessionsPage
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.wicket.protocol.http.IRequestLogger |
---|
IRequestLogger.ISessionLogInfo, IRequestLogger.RequestData, IRequestLogger.SessionData |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
log. |
Constructor Summary | |
---|---|
DummyRequestLogger()
Construct. |
Method Summary | |
---|---|
protected AppendingStringBuffer |
createLogString(IRequestLogger.RequestData rd,
IRequestLogger.SessionData sd,
boolean includeRuntimeInfo)
|
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. |
int |
getTotalCreatedSessions()
|
protected void |
log(IRequestLogger.RequestData rd,
IRequestLogger.SessionData sd)
|
void |
logEventTarget(IRequestHandler requestHandler)
Sets the target that was the event target for the current request |
void |
logResponseTarget(IRequestHandler requestHandler)
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 sessionId)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.slf4j.Logger log
Constructor Detail |
---|
public DummyRequestLogger()
Method Detail |
---|
public int getCurrentActiveRequestCount()
getCurrentActiveRequestCount
in interface IRequestLogger
public int getPeakActiveRequestCount()
getPeakActiveRequestCount
in interface IRequestLogger
public IRequestLogger.SessionData[] getLiveSessions()
getLiveSessions
in interface IRequestLogger
public int getPeakSessions()
getPeakSessions
in interface IRequestLogger
public List<IRequestLogger.RequestData> getRequests()
IRequestLogger
getRequests
in interface IRequestLogger
public int getTotalCreatedSessions()
getTotalCreatedSessions
in interface IRequestLogger
public void logEventTarget(IRequestHandler requestHandler)
IRequestLogger
logEventTarget
in interface IRequestLogger
requestHandler
- the event targetpublic void logResponseTarget(IRequestHandler requestHandler)
IRequestLogger
logResponseTarget
in interface IRequestLogger
requestHandler
- the response targetpublic void objectCreated(Object value)
IRequestLogger
ISessionStore
objectCreated
in interface IRequestLogger
value
- the object being created/addedpublic void objectRemoved(Object value)
IRequestLogger
ISessionStore
objectRemoved
in interface IRequestLogger
value
- the object being removedpublic void objectUpdated(Object value)
IRequestLogger
ISessionStore
objectUpdated
in interface IRequestLogger
value
- the object being updatedpublic void requestTime(long timeTaken)
IRequestLogger
requestTime
in interface IRequestLogger
timeTaken
- the time taken in millisecondspublic void sessionCreated(String sessionId)
IRequestLogger
sessionCreated
in interface IRequestLogger
sessionId
- the session idpublic void sessionDestroyed(String sessionId)
IRequestLogger
sessionDestroyed
in interface IRequestLogger
sessionId
- the session idprotected void log(IRequestLogger.RequestData rd, IRequestLogger.SessionData sd)
rd
- sd
- protected final AppendingStringBuffer createLogString(IRequestLogger.RequestData rd, IRequestLogger.SessionData sd, boolean includeRuntimeInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |