com.jalios.jcms.stat.listener
Class StatDateTimeListener

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.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: 18706 $
Author:
Jean-Philippe Encausse

Field Summary
protected  String key
           
protected  String pattern
           
protected  String refine
           
protected  AbstractStatFieldListener refineListener
           
protected  String refineListenerKey
           
static String REVISION
           
protected  SimpleDateFormat sdf
           
protected  Date startDate
           
 
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
StatDateTimeListener(String pattern, String key, String refine)
           
 
Method Summary
 String getRefine()
           
 AbstractStatFieldListener getRefineListener()
           
 String getRefineListenerKey()
           
 void handleEndOfStatEntries(Map workspaceMap)
          Call EndOfStatEntries with given WorkspaceMap
protected  Date processDate(StatEntry entry)
          Get the Start Date of the StatEntry
 void processEntry(StatEntry entry, Object workspace, Map workspaceMap)
          Process an object and store it to the workspace map
 void setRefine(String refine)
           
 void setRefineListener(AbstractStatFieldListener refineListener)
           
 void setRefineListenerKey(String refineListenerKey)
           
 String toString()
           
 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, init, isFiltered, setDisplay, setPortlet, setZone
 
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

sdf

protected SimpleDateFormat sdf

pattern

protected String pattern

key

protected String key

startDate

protected Date startDate

refine

protected String refine

refineListener

protected AbstractStatFieldListener refineListener

refineListenerKey

protected String refineListenerKey
Constructor Detail

StatDateTimeListener

public StatDateTimeListener(String pattern,
                            String key,
                            String refine)
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)

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

processDate

protected Date processDate(StatEntry entry)
Get the Start Date of the StatEntry

Parameters:
entry -
Returns:
a Date
Since:
jcms-5.0.0

toString

public String toString()
Overrides:
toString in class AbstractStatListener

getRefine

public String getRefine()

setRefine

public void setRefine(String refine)

getRefineListener

public AbstractStatFieldListener getRefineListener()

setRefineListener

public void setRefineListener(AbstractStatFieldListener refineListener)

getRefineListenerKey

public String getRefineListenerKey()

setRefineListenerKey

public void setRefineListenerKey(String refineListenerKey)


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