com.jalios.jcms.stat.listener
Class StatDateTimeListener
java.lang.Object
com.jalios.jcms.stat.listener.AbstractStatListener
com.jalios.jcms.stat.listener.AbstractStatFieldListener
com.jalios.jcms.stat.listener.StatDateTimeListener
- All Implemented Interfaces:
- StatListener
public class StatDateTimeListener
- extends AbstractStatFieldListener
Get the start date of each line of stat and count
validated Entry per Hour / WeekDay.
The Count is store using given keys: "Hour" , "WeekDay"
in the Map of each workspace.
- Since:
- jcms-5.0.0
- Version:
- $Revision: 27753 $
- Author:
- Jean-Philippe Encausse
| 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 |
|
Constructor Summary |
StatDateTimeListener(java.lang.String pattern,
java.lang.String key,
java.lang.String refine)
|
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
sdf
protected java.text.SimpleDateFormat sdf
pattern
protected java.lang.String pattern
key
protected java.lang.String key
startDate
protected java.util.Date startDate
refine
protected java.lang.String refine
refineListener
protected AbstractStatFieldListener refineListener
refineListenerKey
protected java.lang.String refineListenerKey
StatDateTimeListener
public StatDateTimeListener(java.lang.String pattern,
java.lang.String key,
java.lang.String refine)
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(java.util.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)
processEntry
public void processEntry(StatEntry entry,
java.lang.Object workspace,
java.util.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
processDate
protected java.util.Date processDate(StatEntry entry)
- Get the Start Date of the StatEntry
- Parameters:
entry -
- Returns:
- a Date
- Since:
- jcms-5.0.0
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractStatListener
getRefine
public java.lang.String getRefine()
setRefine
public void setRefine(java.lang.String refine)
getRefineListener
public AbstractStatFieldListener getRefineListener()
setRefineListener
public void setRefineListener(AbstractStatFieldListener refineListener)
getRefineListenerKey
public java.lang.String getRefineListenerKey()
setRefineListenerKey
public void setRefineListenerKey(java.lang.String refineListenerKey)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.