org.apache.wicket.protocol.http
Class RequestLogger.SessionData

java.lang.Object
  extended by 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

Constructor Summary
RequestLogger.SessionData(String sessionId)
          Construct.
 
Method Summary
 void addTimeTaken(long time)
           
 int compareTo(RequestLogger.SessionData sd)
           
 Date getLastActive()
           
 long getNumberOfRequests()
           
 String getSessionId()
           
 Object getSessionInfo()
           
 long getSessionSize()
           
 Date getStartDate()
           
 long getTotalTimeTaken()
           
 void setSessionInfo(Object sessionInfo)
           
 void setSessionSize(long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLogger.SessionData

public RequestLogger.SessionData(String sessionId)
Construct.

Parameters:
sessionId -
Method Detail

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.