com.jalios.jcms.stat.listener
Class StatFieldListener
java.lang.Object
com.jalios.jcms.stat.listener.AbstractStatListener
com.jalios.jcms.stat.listener.AbstractStatFieldListener
com.jalios.jcms.stat.listener.AbstractStatMultiListener
com.jalios.jcms.stat.listener.StatFieldListener
- All Implemented Interfaces:
- StatListener
- Direct Known Subclasses:
- StatDataListener, StatMatchPatternListener
public class StatFieldListener
- extends AbstractStatMultiListener
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 |
StatFieldListener(String field,
String mapKey,
boolean validate)
|
StatFieldListener(String field,
String mapKey,
boolean validate,
Object defaultValue)
|
StatFieldListener(String zone,
String field,
String mapKey,
boolean validate)
|
StatFieldListener(String zone,
String field,
String mapKey,
boolean validate,
boolean vObj,
Object defaultValue)
|
StatFieldListener(String zone,
String field,
String mapKey,
boolean validate,
Object defaultValue)
|
Methods inherited from class com.jalios.jcms.stat.listener.AbstractStatFieldListener |
getBeautifier, getNanoDuration, getWorkspaceFieldMap, getWorkspaceFieldMap, getWorkspaceMap, handleEndOfStatEntries, handleStatEntry, timeStart, timeStop, updateWorkspaceMap, updateWorkspaceMap, updateWorkspaceMap |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
field
protected String field
mapKey
protected String mapKey
tmpObjs
protected SortedSet tmpObjs
validate
protected boolean validate
vObj
protected boolean vObj
defaultValue
protected Object defaultValue
StatFieldListener
public StatFieldListener(String field,
String mapKey,
boolean validate)
StatFieldListener
public StatFieldListener(String field,
String mapKey,
boolean validate,
Object defaultValue)
StatFieldListener
public StatFieldListener(String zone,
String field,
String mapKey,
boolean validate)
StatFieldListener
public StatFieldListener(String zone,
String field,
String mapKey,
boolean validate,
Object defaultValue)
StatFieldListener
public StatFieldListener(String zone,
String field,
String mapKey,
boolean validate,
boolean vObj,
Object defaultValue)
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 AbstractStatMultiListener
- Returns:
- true if the Entry shoud be processed.
- Since:
- jcms-5.0.0
- See Also:
AbstractStatFieldListener.validateEntry(StatEntry)
validateEntryObject
protected boolean validateEntryObject(StatEntry entry)
validateEntryField
protected boolean validateEntryField(StatEntry entry)
handleEndOfStatEntries
public void handleEndOfStatEntries(Map workspaceMap)
- Description copied from class:
AbstractStatFieldListener
- Call EndOfStatEntries with given WorkspaceMap
- Overrides:
handleEndOfStatEntries
in class AbstractStatMultiListener
- 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
- Overrides:
processEntry
in class AbstractStatMultiListener
- Since:
- jcms-5.0.0
- See Also:
AbstractStatFieldListener.processEntry(StatEntry, Object, Map)
getCurrentObjSet
public SortedSet getCurrentObjSet()
- Return the current processing objects
- Since:
- jcms-5.0.0
getCurrentObjSet
public SortedSet getCurrentObjSet(String mapKey)
- Return the current processing objects
- Overrides:
getCurrentObjSet
in class AbstractStatMultiListener
- Since:
- jcms-5.6.0
toString
public String toString()
- Overrides:
toString
in class AbstractStatListener
Copyright © 2001-2010 Jalios SA. All Rights Reserved.