|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.novadeck.jxla.data.Site
Contains all information picked from the logs files for a specific site
| Constructor Summary | |
Site(java.lang.String str)
simple constructor for a website |
|
| Method Summary | |
void |
addHit(Line l)
Add current log line to the site |
static void |
addLine(Line l)
search the site associated to this line and add the line data to his reports |
static void |
addSite(SiteHistory hist)
On load prog read the serialized data and init sites information using this method |
java.lang.StringBuffer |
getData(java.lang.String statsDirectory)
Write all month reports an return a summary |
java.util.Date |
getFirstLogDate()
Retrieve the date of the first lline log applied to this site. |
SiteHistory |
getHistory()
Use for storing information report related of a particular site for storing into a file using Java serialization |
java.lang.StringBuffer |
getMonthData(int month,
int year)
Retrieve specified month summary information for a single global all sites summary |
java.lang.String |
getName()
Return the name of the site |
static Site |
getSite(java.lang.String host)
Retrieve a site based on his name |
static java.lang.String[] |
getSiteHosts()
Return an array all site having log informations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Site(java.lang.String str)
str - internal hostname of the site| Method Detail |
public java.lang.String getName()
public java.util.Date getFirstLogDate()
public void addHit(Line l)
l - line parsed
public java.lang.StringBuffer getMonthData(int month,
int year)
month - month numberyear - year numberpublic static void addLine(Line l)
l - line parsedpublic SiteHistory getHistory()
public java.lang.StringBuffer getData(java.lang.String statsDirectory)
statsDirectory - directory path where to write reportspublic static Site getSite(java.lang.String host)
host - hostnamepublic static java.lang.String[] getSiteHosts()
public static void addSite(SiteHistory hist)
hist - history data from previous parsing of a site
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||