com.jalios.jcms.stat
Class StatHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.jalios.jcms.stat.StatHandler
All Implemented Interfaces:
Serializable, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class StatHandler
extends DefaultHandler
implements Serializable

See Also:
Serialized Form

Field Summary
protected  long analyseTime
           
protected  long callcount
           
protected  Date computeDate
           
protected  long endAnalyseDate
           
protected  long endReportDate
           
protected  StatEntry entry
           
protected  Object filterWorkspace
           
protected  long fullLength
           
protected  Map listeners
           
static String REVISION
           
protected  long startAnalyseDate
           
protected  long startReportDate
           
 
Constructor Summary
StatHandler()
           
StatHandler(long startReportDate, long endReportDate)
           
 
Method Summary
 void addStatListener(StatListener l)
          Add a StatListener.
 void endDocument()
           
 Date getAnalyseDate()
          Return the date of analyse
 long getAnalyseTime()
          Returns the analyseTime.
 long getEndAnalyseDate()
          Return the ending date of the analysed stats
 long getEndReportDate()
          Return the ending date of the report
 long getProcessTime()
          Returns the analyseTime.
 long getStartAnalyseDate()
          Return the starting date of the analysed stats
 long getStartReportDate()
          Return the starting date of the report
 StatListener getStatListener(String key)
          Get a StatListener using it's name
 int getStatListenerCount()
           
 void removeStatListener(StatListener l)
          Remove a StatListener.
 void setAnalyseTime(long analyseTime)
          Sets the analyseTime.
 void setFilterWorkspace(Object filter)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

listeners

protected transient Map listeners

analyseTime

protected transient long analyseTime

fullLength

protected transient long fullLength

callcount

protected transient long callcount

computeDate

protected transient Date computeDate

entry

protected transient StatEntry entry

startReportDate

protected transient long startReportDate

endReportDate

protected transient long endReportDate

startAnalyseDate

protected transient long startAnalyseDate

endAnalyseDate

protected transient long endAnalyseDate

filterWorkspace

protected transient Object filterWorkspace
Constructor Detail

StatHandler

public StatHandler()

StatHandler

public StatHandler(long startReportDate,
                   long endReportDate)
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException
See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

addStatListener

public void addStatListener(StatListener l)
Add a StatListener.


removeStatListener

public void removeStatListener(StatListener l)
Remove a StatListener.


getStatListener

public StatListener getStatListener(String key)
Get a StatListener using it's name


getStatListenerCount

public int getStatListenerCount()

getAnalyseDate

public Date getAnalyseDate()
Return the date of analyse

Returns:
Date
Since:
jcms-4.0

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler
Throws:
SAXException
See Also:
ContentHandler.endDocument()

getAnalyseTime

public long getAnalyseTime()
Returns the analyseTime.

Returns:
long

getProcessTime

public long getProcessTime()
Returns the analyseTime.

Returns:
long

setFilterWorkspace

public void setFilterWorkspace(Object filter)

setAnalyseTime

public void setAnalyseTime(long analyseTime)
Sets the analyseTime.

Parameters:
analyseTime - The analyseTime to set

getStartReportDate

public long getStartReportDate()
Return the starting date of the report

Returns:
long

getEndReportDate

public long getEndReportDate()
Return the ending date of the report

Returns:
long

getStartAnalyseDate

public long getStartAnalyseDate()
Return the starting date of the analysed stats

Returns:
long

getEndAnalyseDate

public long getEndAnalyseDate()
Return the ending date of the analysed stats

Returns:
long


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