com.jalios.jcms.stat.listener
Class StatSessionListener

java.lang.Object
  extended by com.jalios.jcms.stat.listener.AbstractStatListener
      extended by com.jalios.jcms.stat.listener.AbstractStatFieldListener
          extended by com.jalios.jcms.stat.listener.StatSessionListener
All Implemented Interfaces:
StatListener

public class StatSessionListener
extends AbstractStatFieldListener

Since:
jcms-5.0.0
Version:
$Revision: 27753 $
Author:
Jean-Philippe Encausse

Field Summary
 long averageSessionDuration
           
protected  long requestTimeOut
           
static String REVISION
           
protected  String session
           
protected  Map sessionMap
           
protected  Set sessionSet
           
protected  long sessionTimeOut
           
 
Fields inherited from class com.jalios.jcms.stat.listener.AbstractStatFieldListener
beautifier, handleCount, handleTime, t0
 
Fields inherited from class com.jalios.jcms.stat.listener.AbstractStatListener
ADMIN_AREA, ALL_AREA, channel, display, displayAverage, displayTimeChart, displayWeekChart, FEED_AREA, filteredZone, name, portlet, PUBLIC_AREA, regexpFilter, report, WORK_AREA
 
Fields inherited from interface com.jalios.jcms.stat.StatListener
ALL_WORKSPACE, TRUNCATE
 
Constructor Summary
StatSessionListener()
           
 
Method Summary
protected  void averageSessionDuration()
          Calculate the final session duration
protected  long getSessionDuration(long[] duration)
          Calculate the session duration
 void handleEndOfStatEntries(Map workspaceMap)
          Call EndOfStatEntries with given WorkspaceMap
 void processEntry(StatEntry entry, Object workspace, Map workspaceMap)
          Process an object and store it to the workspace map
protected  void processSessionDuration(long startDate)
          Update the session count
 boolean validateEntry(StatEntry entry)
          Validate the Stat Entry and get the correct parameter to process later.
 
Methods inherited from class com.jalios.jcms.stat.listener.AbstractStatFieldListener
getBeautifier, getCurrentObjSet, getNanoDuration, getWorkspaceFieldMap, getWorkspaceFieldMap, getWorkspaceMap, handleEndOfStatEntries, handleStatEntry, processWorkspace, timeStart, timeStop, updateWorkspaceMap, updateWorkspaceMap, updateWorkspaceMap
 
Methods inherited from class com.jalios.jcms.stat.listener.AbstractStatListener
getDisplay, getName, getPortlet, getZone, handleStartDocument, init, isFiltered, setDisplay, setPortlet, setZone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

sessionMap

protected Map sessionMap

sessionSet

protected Set sessionSet

sessionTimeOut

protected long sessionTimeOut

requestTimeOut

protected long requestTimeOut

session

protected String session

averageSessionDuration

public long averageSessionDuration
Constructor Detail

StatSessionListener

public StatSessionListener()
Method Detail

validateEntry

public boolean validateEntry(StatEntry entry)
Description copied from class: AbstractStatFieldListener
Validate the Stat Entry and get the correct parameter to process later.

Overrides:
validateEntry in class AbstractStatFieldListener
Returns:
true if the Entry shoud be processed.
Since:
jcms-5.0.0
See Also:
AbstractStatFieldListener.validateEntry(StatEntry)

handleEndOfStatEntries

public void handleEndOfStatEntries(Map workspaceMap)
Description copied from class: AbstractStatFieldListener
Call EndOfStatEntries with given WorkspaceMap

Specified by:
handleEndOfStatEntries in class AbstractStatFieldListener
Since:
jcms-5.0.0
See Also:
AbstractStatFieldListener.handleEndOfStatEntries(Map)

getSessionDuration

protected long getSessionDuration(long[] duration)
Calculate the session duration

Parameters:
duration -
Returns:
long the sessino duration
Since:
jcms-5.0.0

processEntry

public void processEntry(StatEntry entry,
                         Object workspace,
                         Map workspaceMap)
Description copied from class: AbstractStatFieldListener
Process an object and store it to the workspace map

Specified by:
processEntry in class AbstractStatFieldListener
Since:
jcms-5.0.0

averageSessionDuration

protected void averageSessionDuration()
Calculate the final session duration


processSessionDuration

protected void processSessionDuration(long startDate)
Update the session count

Since:
jcms-5.0.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.