com.jalios.jcms.stat.listener
Class AbstractStatMultiListener

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.AbstractStatMultiListener
All Implemented Interfaces:
StatListener
Direct Known Subclasses:
StatCrossingListener, StatFieldListener

public abstract class AbstractStatMultiListener
extends AbstractStatFieldListener

Execute Multiple AbstractLogFieldListener.

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

Field Summary
protected  StatDateTimeListener dayListener
           
protected  StatDateTimeListener dayWeekListener
           
protected  StatDateTimeListener hourListener
           
protected  List listeners
           
protected  StatDateTimeListener monthListener
           
static String REVISION
           
protected  StatDateTimeListener weekListener
           
 
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
AbstractStatMultiListener(String zone)
           
 
Method Summary
 void addListener(AbstractStatFieldListener l)
          Add a listener to call
 SortedSet getCurrentObjSet(String mapKey)
          Return the current processing objects
 void handleEndOfStatEntries(Map workspaceMap)
          Call EndOfStatEntries with given WorkspaceMap
 void init(PortletStat portlet, PortalElement report)
          Init the Portlet attributs
 void processEntry(StatEntry entry, Object workspace, Map workspaceMap)
          Process an object and store it to the workspace map
protected  void processEntry(StatEntry entry, Object workspace, Map workspaceMap, Collection skip)
           
 Object processWorkspace(StatEntry entry)
          Get the workspace of the StatEntry
 void removeListener(AbstractStatFieldListener l)
          Remove a Listener to call
 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, getNanoDuration, getWorkspaceFieldMap, getWorkspaceFieldMap, getWorkspaceMap, handleEndOfStatEntries, handleStatEntry, timeStart, timeStop, updateWorkspaceMap, updateWorkspaceMap, updateWorkspaceMap
 
Methods inherited from class com.jalios.jcms.stat.listener.AbstractStatListener
getDisplay, getName, getPortlet, getZone, handleStartDocument, 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

listeners

protected List listeners

dayListener

protected StatDateTimeListener dayListener

weekListener

protected StatDateTimeListener weekListener

monthListener

protected StatDateTimeListener monthListener

dayWeekListener

protected StatDateTimeListener dayWeekListener

hourListener

protected StatDateTimeListener hourListener
Constructor Detail

AbstractStatMultiListener

public AbstractStatMultiListener(String zone)
Method Detail

init

public void init(PortletStat portlet,
                 PortalElement report)
Description copied from interface: StatListener
Init the Portlet attributs

Specified by:
init in interface StatListener
Overrides:
init in class AbstractStatListener
Since:
jcms-5.0.0
See Also:
StatListener.init(PortletStat, PortalElement)

handleEndOfStatEntries

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

Specified by:
handleEndOfStatEntries in class AbstractStatFieldListener
See Also:
AbstractStatFieldListener.handleEndOfStatEntries(Map)

processWorkspace

public Object processWorkspace(StatEntry entry)
Description copied from class: AbstractStatFieldListener
Get the workspace of the StatEntry

Overrides:
processWorkspace in class AbstractStatFieldListener
Returns:
a Workspace
Since:
jcms-5.0.3
See Also:
AbstractStatFieldListener.processWorkspace(StatEntry)

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)

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
See Also:
AbstractStatFieldListener.processEntry(StatEntry, Object, Map)

processEntry

protected void processEntry(StatEntry entry,
                            Object workspace,
                            Map workspaceMap,
                            Collection skip)

addListener

public void addListener(AbstractStatFieldListener l)
Add a listener to call

Parameters:
l -
Since:
jcms-5.0.0

removeListener

public void removeListener(AbstractStatFieldListener l)
Remove a Listener to call

Parameters:
l -
Since:
jcms-5.0.0

getCurrentObjSet

public SortedSet getCurrentObjSet(String mapKey)
Return the current processing objects

Overrides:
getCurrentObjSet in class AbstractStatFieldListener
Since:
jcms-5.6.0


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