org.apache.wicket.protocol.http
Class RequestLogger.SessionData
java.lang.Object
org.apache.wicket.protocol.http.RequestLogger.SessionData
- All Implemented Interfaces:
- Serializable, Comparable<RequestLogger.SessionData>, IClusterable
- Enclosing class:
- RequestLogger
public static class RequestLogger.SessionData
- extends Object
- implements IClusterable, Comparable<RequestLogger.SessionData>
This class hold the information one request of a session has.
- Author:
- jcompagner
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestLogger.SessionData
public RequestLogger.SessionData(String sessionId)
- Construct.
- Parameters:
sessionId
-
getLastActive
public Date getLastActive()
- Returns:
- The last active date.
getStartDate
public Date getStartDate()
- Returns:
- The start date of this session
getNumberOfRequests
public long getNumberOfRequests()
- Returns:
- The number of request for this session
getSessionSize
public long getSessionSize()
- Returns:
- Returns the session size.
getTotalTimeTaken
public long getTotalTimeTaken()
- Returns:
- Returns the total time this session has spent.
getSessionInfo
public Object getSessionInfo()
- Returns:
- The session info object given by the
RequestLogger.ISessionLogInfo.getSessionInfo()
session method.
getSessionId
public String getSessionId()
- Returns:
- The session id
addTimeTaken
public void addTimeTaken(long time)
setSessionInfo
public void setSessionInfo(Object sessionInfo)
setSessionSize
public void setSessionSize(long size)
compareTo
public int compareTo(RequestLogger.SessionData sd)
- Specified by:
compareTo
in interface Comparable<RequestLogger.SessionData>
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.