|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.novadeck.jxla.data.SiteHistory
This class is used to store information about site logs, in file using serialization. Contains all information about the current month, and summary information for old months
| Constructor Summary | |
SiteHistory(java.lang.String name_site,
java.util.Date last_record,
java.util.Date first_record)
simple construcor |
|
| Method Summary | |
void |
addMonthSummary(MonthData m)
add a month to be stored summarized |
boolean |
allReadyParse(java.util.Date d)
|
java.util.Date |
getFirstRecordDate()
Return first date of logs for this site |
MonthData |
getLastMonth()
retrieve current month information. |
java.util.Date |
getLastRecordDate()
Retrieve date of last line request parsed, during parsing, only log line with a date higher than this will used |
java.lang.String |
getName()
retrieve site internal name |
java.lang.StringBuffer |
getSummary()
Get xml summary as a string buffer |
void |
setLastMonth(MonthData m)
set the month that has been finished ( current month ) to store all data for further use |
void |
updateLastRecordDate(java.util.Date d)
set le last log date found for the current site |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SiteHistory(java.lang.String name_site,
java.util.Date last_record,
java.util.Date first_record)
name_site - internal host namelast_record - date of the last request made to this websitefirst_record - date of the first request mad to this website| Method Detail |
public void addMonthSummary(MonthData m)
m - month datapublic void setLastMonth(MonthData m)
m - last month found in log for the current sitepublic MonthData getLastMonth()
public void updateLastRecordDate(java.util.Date d)
d - higher date found in logs for the current sitepublic java.util.Date getLastRecordDate()
public java.util.Date getFirstRecordDate()
public java.lang.String getName()
public boolean allReadyParse(java.util.Date d)
d - date of requestpublic java.lang.StringBuffer getSummary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||