com.jalios.jcms.stat.listener
Class AbstractStatListener

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

public abstract class AbstractStatListener
extends Object
implements StatListener


Field Summary
static String ADMIN_AREA
           
static String ALL_AREA
           
protected  Channel channel
           
protected  String display
           
protected  boolean displayAverage
           
protected  boolean displayTimeChart
           
protected  boolean displayWeekChart
           
static String FEED_AREA
           
protected  String filteredZone
           
protected  String name
           
protected  PortletStat portlet
           
static String PUBLIC_AREA
           
protected  boolean regexpFilter
           
protected  PortalElement report
           
static String REVISION
           
static String WORK_AREA
           
 
Fields inherited from interface com.jalios.jcms.stat.StatListener
ALL_WORKSPACE, TRUNCATE
 
Constructor Summary
AbstractStatListener()
           
 
Method Summary
 String getDisplay()
           
 String getName()
          Return the distinguish name of the listener
 PortletStat getPortlet()
           
 String getZone()
           
abstract  void handleEndOfStatEntries()
          Called when parsing is finished and then no more line will be send
 void handleStartDocument()
          handle start document event
 boolean handleStatEntry(StatEntry entry)
          Handle a line of Log
 void init(PortletStat portlet, PortalElement report)
          Init the Portlet attributs
protected  boolean isFiltered(StatEntry entry)
           
 void setDisplay(String display)
           
 void setPortlet(PortletStat portlet)
           
 void setZone(String zone)
           
 String 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

ALL_AREA

public static final String ALL_AREA

ADMIN_AREA

public static final String ADMIN_AREA
See Also:
Constant Field Values

WORK_AREA

public static final String WORK_AREA
See Also:
Constant Field Values

PUBLIC_AREA

public static final String PUBLIC_AREA
See Also:
Constant Field Values

FEED_AREA

public static final String FEED_AREA
See Also:
Constant Field Values

name

protected String name

display

protected String display

regexpFilter

protected boolean regexpFilter

displayAverage

protected boolean displayAverage

displayTimeChart

protected boolean displayTimeChart

displayWeekChart

protected boolean displayWeekChart

filteredZone

protected String filteredZone

portlet

protected PortletStat portlet

report

protected PortalElement report

channel

protected Channel channel
Constructor Detail

AbstractStatListener

public AbstractStatListener()
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
See Also:
StatListener.init(PortletStat, PortalElement)

handleStatEntry

public boolean handleStatEntry(StatEntry entry)
Description copied from interface: StatListener
Handle a line of Log

Specified by:
handleStatEntry in interface StatListener
Returns:
true if line is handle
See Also:
StatListener.handleStatEntry(StatEntry)

handleEndOfStatEntries

public abstract void handleEndOfStatEntries()
Description copied from interface: StatListener
Called when parsing is finished and then no more line will be send

Specified by:
handleEndOfStatEntries in interface StatListener
See Also:
StatListener.handleEndOfStatEntries()

getName

public String getName()
Description copied from interface: StatListener
Return the distinguish name of the listener

Specified by:
getName in interface StatListener
Returns:
String
See Also:
StatListener.getName()

isFiltered

protected boolean isFiltered(StatEntry entry)

toString

public String toString()
Overrides:
toString in class Object

getZone

public String getZone()

setZone

public void setZone(String zone)

getPortlet

public PortletStat getPortlet()

setPortlet

public void setPortlet(PortletStat portlet)

getDisplay

public String getDisplay()

setDisplay

public void setDisplay(String display)

handleStartDocument

public void handleStartDocument()
Description copied from interface: StatListener
handle start document event

Specified by:
handleStartDocument in interface StatListener


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