public class CustomStatHandler
extends org.xml.sax.helpers.DefaultHandler
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
analyseTime |
protected long |
callcount |
protected java.util.Date |
computeDate |
protected long |
endAnalyseDate |
protected long |
endReportDate |
protected StatEntry |
entry |
protected java.lang.Object |
filterWorkspace |
protected long |
fullLength |
protected java.util.Map |
listeners |
static java.lang.String |
REVISION |
protected long |
startAnalyseDate |
protected long |
startReportDate |
Constructor and Description |
---|
CustomStatHandler() |
CustomStatHandler(long startReportDate,
long endReportDate) |
Modifier and Type | Method and Description |
---|---|
void |
addStatListener(StatListener l)
Add a StatListener.
|
void |
endDocument() |
java.util.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(java.lang.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(java.lang.Object filter) |
void |
startDocument() |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
public static final java.lang.String REVISION
protected transient java.util.Map listeners
protected transient long analyseTime
protected transient long fullLength
protected transient long callcount
protected transient java.util.Date computeDate
protected transient StatEntry entry
protected transient long startReportDate
protected transient long endReportDate
protected transient long startAnalyseDate
protected transient long endAnalyseDate
protected transient java.lang.Object filterWorkspace
public CustomStatHandler()
public CustomStatHandler(long startReportDate, long endReportDate)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void addStatListener(StatListener l)
l
- the StatListener
public void removeStatListener(StatListener l)
l
- the StatListener
public StatListener getStatListener(java.lang.String key)
key
- the StatListener
keyStatListener
if found, null otherwisepublic int getStatListenerCount()
public java.util.Date getAnalyseDate()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
ContentHandler.endDocument()
public long getAnalyseTime()
public long getProcessTime()
public void setFilterWorkspace(java.lang.Object filter)
public void setAnalyseTime(long analyseTime)
analyseTime
- The analyseTime to setpublic long getStartReportDate()
public long getEndReportDate()
public long getStartAnalyseDate()
public long getEndAnalyseDate()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.