mam.utility
Class AccessStatistics


public class AccessStatistics
implements Cloneable, Serializable, XmlSerializable


Field Summary
 final static StringCURRENT_DAY_ATTRIBUTE
           
 final static StringCURRENT_DAY_HITS_ATTRIBUTE
           
 final static StringCURRENT_DAY_SUCCESSFUL_HITS_ATTRIBUTE
           
 final static StringCURRENT_MONTH_ATTRIBUTE
           
 final static StringCURRENT_MONTH_HITS_ATTRIBUTE
           
 final static StringCURRENT_MONTH_SUCCESSFUL_HITS_ATTRIBUTE
           
 final static StringCURRENT_WEEK_ATTRIBUTE
           
 final static StringCURRENT_WEEK_HITS_ATTRIBUTE
           
 final static StringCURRENT_WEEK_SUCCESSFUL_HITS_ATTRIBUTE
           
 final static StringDEFAULT_TAG_NAME
           
 final static StringLAST_DAY_HITS_ATTRIBUTE
           
 final static StringLAST_DAY_SUCCESSFUL_HITS_ATTRIBUTE
           
 final static StringLAST_HIT_TIMESTAMP_ATTRIBUTE
           
 final static StringLAST_MONTH_HITS_ATTRIBUTE
           
 final static StringLAST_MONTH_SUCCESSFUL_HITS_ATTRIBUTE
           
 final static StringLAST_SUCCESSFUL_HIT_TIMESTAMP_ATTRIBUTE
           
 final static StringLAST_WEEK_HITS_ATTRIBUTE
           
 final static StringLAST_WEEK_SUCCESSFUL_HITS_ATTRIBUTE
           
 protected intm_currentDay
           
 protected longm_currentDayHits
           
 protected longm_currentDaySuccessfulHits
           
 protected intm_currentMonth
           
 protected longm_currentMonthHits
           
 protected longm_currentMonthSuccessfulHits
           
 protected intm_currentWeek
           
 protected longm_currentWeekHits
           
 protected longm_currentWeekSuccessfulHits
           
 protected longm_lastDayHits
           
 protected longm_lastDaySuccessfulHits
           
 protected longm_lastHitTimestamp
           
 protected longm_lastMonthHits
           
 protected longm_lastMonthSuccessfulHits
           
 protected longm_lastSuccessfulHitTimestamp
           
 protected longm_lastWeekHits
           
 protected longm_lastWeekSuccessfulHits
           
 protected Stringm_requestorName
           
 protected longm_totalHits
           
 protected longm_totalSuccessfulHits
           
 final static StringREQUESTOR_NAME
           
 final static StringTOTAL_HITS_ATTRIBUTE
           
 final static StringTOTAL_SUCCESSFUL_HITS_ATTRIBUTE
           

Constructor Summary
AccessStatistics()
           
AccessStatistics(long totalSuccessfulHits, long totalHits)
           
AccessStatistics(Element accessStatisticsElement)
           

Method Summary
 Objectclone()
           
 voidfromXmlElement(Element source)
           
 intgetCurrentDay()
           
 longgetCurrentDayHits()
           
 longgetCurrentDaySuccessfulHits()
           
 intgetCurrentMonth()
           
 longgetCurrentMonthHits()
           
 longgetCurrentMonthSuccessfulHits()
           
 intgetCurrentWeek()
           
 longgetCurrentWeekHits()
           
 longgetCurrentWeekSuccessfulHits()
           
 floatgetDeltaPercentageDaily()
           
 floatgetDeltaPercentageMonthly()
           
 floatgetDeltaPercentageWeekly()
           
 longgetLastDayHits()
           
 longgetLastDaySuccessfulHits()
           
 DategetLastHitDate()
           
 longgetLastHitTimestamp()
           
 longgetLastMonthHits()
           
 longgetLastMonthSuccessfulHits()
           
 DategetLastSuccessfulHitDate()
           
 longgetLastSuccessfulHitTimestamp()
           
 longgetLastWeekHits()
           
 longgetLastWeekSuccessfulHits()
           
 StringgetRequestorName()
           
 longgetTotalHits()
           
 longgetTotalSuccessfulHits()
           
 voidincrementHits()
           
 voidincrementSuccessfulHits()
           
 voidsetCurrentDay(int currentDay)
           
 voidsetCurrentDayHits(long currentDayHits)
           
 voidsetCurrentDaySuccessfulHits(long currentDaySuccessfulHits)
           
 voidsetCurrentMonth(int currentMonth)
           
 voidsetCurrentMonthHits(long currentMonthHits)
           
 voidsetCurrentMonthSuccessfulHits(long currentMonthSuccessfulHits)
           
 voidsetCurrentWeek(int currentWeek)
           
 voidsetCurrentWeekHits(long currentWeekHits)
           
 voidsetCurrentWeekSuccessfulHits(long currentWeekSuccessfulHits)
           
 voidsetLastDayHits(long lastDayHits)
           
 voidsetLastDaySuccessfulHits(long lastDaySuccessfulHits)
           
 voidsetLastHitTimestamp(long lastHitTimestamp)
           
 voidsetLastMonthHits(long lastMonthHits)
           
 voidsetLastMonthSuccessfulHits(long lastMonthSuccessfulHits)
           
 voidsetLastSuccessfulHitTimestamp(long lastSuccessfulHitTimestamp)
           
 voidsetLastWeekHits(long lastWeekHits)
           
 voidsetLastWeekSuccessfulHits(long lastWeekSuccessfulHits)
           
 voidsetRequestorName(String requestorName)
           
 voidsetTotalHits(long totalHits)
           
 voidsetTotalSuccessfulHits(long totalSuccessfulHits)
           
 StringtoString()
           
 ElementtoXmlElement()
           
 ElementtoXmlElement(String tagName)
           

Field Detail

CURRENT_DAY_ATTRIBUTE

public final static String CURRENT_DAY_ATTRIBUTE

CURRENT_DAY_HITS_ATTRIBUTE

public final static String CURRENT_DAY_HITS_ATTRIBUTE

CURRENT_DAY_SUCCESSFUL_HITS_ATTRIBUTE

public final static String CURRENT_DAY_SUCCESSFUL_HITS_ATTRIBUTE

CURRENT_MONTH_ATTRIBUTE

public final static String CURRENT_MONTH_ATTRIBUTE

CURRENT_MONTH_HITS_ATTRIBUTE

public final static String CURRENT_MONTH_HITS_ATTRIBUTE

CURRENT_MONTH_SUCCESSFUL_HITS_ATTRIBUTE

public final static String CURRENT_MONTH_SUCCESSFUL_HITS_ATTRIBUTE

CURRENT_WEEK_ATTRIBUTE

public final static String CURRENT_WEEK_ATTRIBUTE

CURRENT_WEEK_HITS_ATTRIBUTE

public final static String CURRENT_WEEK_HITS_ATTRIBUTE

CURRENT_WEEK_SUCCESSFUL_HITS_ATTRIBUTE

public final static String CURRENT_WEEK_SUCCESSFUL_HITS_ATTRIBUTE

DEFAULT_TAG_NAME

public final static String DEFAULT_TAG_NAME

LAST_DAY_HITS_ATTRIBUTE

public final static String LAST_DAY_HITS_ATTRIBUTE

LAST_DAY_SUCCESSFUL_HITS_ATTRIBUTE

public final static String LAST_DAY_SUCCESSFUL_HITS_ATTRIBUTE

LAST_HIT_TIMESTAMP_ATTRIBUTE

public final static String LAST_HIT_TIMESTAMP_ATTRIBUTE

LAST_MONTH_HITS_ATTRIBUTE

public final static String LAST_MONTH_HITS_ATTRIBUTE

LAST_MONTH_SUCCESSFUL_HITS_ATTRIBUTE

public final static String LAST_MONTH_SUCCESSFUL_HITS_ATTRIBUTE

LAST_SUCCESSFUL_HIT_TIMESTAMP_ATTRIBUTE

public final static String LAST_SUCCESSFUL_HIT_TIMESTAMP_ATTRIBUTE

LAST_WEEK_HITS_ATTRIBUTE

public final static String LAST_WEEK_HITS_ATTRIBUTE

LAST_WEEK_SUCCESSFUL_HITS_ATTRIBUTE

public final static String LAST_WEEK_SUCCESSFUL_HITS_ATTRIBUTE

m_currentDay

protected int m_currentDay

m_currentDayHits

protected long m_currentDayHits

m_currentDaySuccessfulHits

protected long m_currentDaySuccessfulHits

m_currentMonth

protected int m_currentMonth

m_currentMonthHits

protected long m_currentMonthHits

m_currentMonthSuccessfulHits

protected long m_currentMonthSuccessfulHits

m_currentWeek

protected int m_currentWeek

m_currentWeekHits

protected long m_currentWeekHits

m_currentWeekSuccessfulHits

protected long m_currentWeekSuccessfulHits

m_lastDayHits

protected long m_lastDayHits

m_lastDaySuccessfulHits

protected long m_lastDaySuccessfulHits

m_lastHitTimestamp

protected long m_lastHitTimestamp

m_lastMonthHits

protected long m_lastMonthHits

m_lastMonthSuccessfulHits

protected long m_lastMonthSuccessfulHits

m_lastSuccessfulHitTimestamp

protected long m_lastSuccessfulHitTimestamp

m_lastWeekHits

protected long m_lastWeekHits

m_lastWeekSuccessfulHits

protected long m_lastWeekSuccessfulHits

m_requestorName

protected String m_requestorName

m_totalHits

protected long m_totalHits

m_totalSuccessfulHits

protected long m_totalSuccessfulHits

REQUESTOR_NAME

public final static String REQUESTOR_NAME

TOTAL_HITS_ATTRIBUTE

public final static String TOTAL_HITS_ATTRIBUTE

TOTAL_SUCCESSFUL_HITS_ATTRIBUTE

public final static String TOTAL_SUCCESSFUL_HITS_ATTRIBUTE
Constructor Detail

AccessStatistics

public AccessStatistics()

AccessStatistics

public AccessStatistics(long totalSuccessfulHits, long totalHits)

AccessStatistics

public AccessStatistics(Element accessStatisticsElement)
Method Detail

clone

public Object clone()

fromXmlElement

public void fromXmlElement(Element source)

getCurrentDay

public int getCurrentDay()

getCurrentDayHits

public long getCurrentDayHits()

getCurrentDaySuccessfulHits

public long getCurrentDaySuccessfulHits()

getCurrentMonth

public int getCurrentMonth()

getCurrentMonthHits

public long getCurrentMonthHits()

getCurrentMonthSuccessfulHits

public long getCurrentMonthSuccessfulHits()

getCurrentWeek

public int getCurrentWeek()

getCurrentWeekHits

public long getCurrentWeekHits()

getCurrentWeekSuccessfulHits

public long getCurrentWeekSuccessfulHits()

getDeltaPercentageDaily

public float getDeltaPercentageDaily()

getDeltaPercentageMonthly

public float getDeltaPercentageMonthly()

getDeltaPercentageWeekly

public float getDeltaPercentageWeekly()

getLastDayHits

public long getLastDayHits()

getLastDaySuccessfulHits

public long getLastDaySuccessfulHits()

getLastHitDate

public Date getLastHitDate()

getLastHitTimestamp

public long getLastHitTimestamp()

getLastMonthHits

public long getLastMonthHits()

getLastMonthSuccessfulHits

public long getLastMonthSuccessfulHits()

getLastSuccessfulHitDate

public Date getLastSuccessfulHitDate()

getLastSuccessfulHitTimestamp

public long getLastSuccessfulHitTimestamp()

getLastWeekHits

public long getLastWeekHits()

getLastWeekSuccessfulHits

public long getLastWeekSuccessfulHits()

getRequestorName

public String getRequestorName()

getTotalHits

public long getTotalHits()

getTotalSuccessfulHits

public long getTotalSuccessfulHits()

incrementHits

public void incrementHits()

incrementSuccessfulHits

public void incrementSuccessfulHits()

setCurrentDay

public void setCurrentDay(int currentDay)

setCurrentDayHits

public void setCurrentDayHits(long currentDayHits)

setCurrentDaySuccessfulHits

public void setCurrentDaySuccessfulHits(long currentDaySuccessfulHits)

setCurrentMonth

public void setCurrentMonth(int currentMonth)

setCurrentMonthHits

public void setCurrentMonthHits(long currentMonthHits)

setCurrentMonthSuccessfulHits

public void setCurrentMonthSuccessfulHits(long currentMonthSuccessfulHits)

setCurrentWeek

public void setCurrentWeek(int currentWeek)

setCurrentWeekHits

public void setCurrentWeekHits(long currentWeekHits)

setCurrentWeekSuccessfulHits

public void setCurrentWeekSuccessfulHits(long currentWeekSuccessfulHits)

setLastDayHits

public void setLastDayHits(long lastDayHits)

setLastDaySuccessfulHits

public void setLastDaySuccessfulHits(long lastDaySuccessfulHits)

setLastHitTimestamp

public void setLastHitTimestamp(long lastHitTimestamp)

setLastMonthHits

public void setLastMonthHits(long lastMonthHits)

setLastMonthSuccessfulHits

public void setLastMonthSuccessfulHits(long lastMonthSuccessfulHits)

setLastSuccessfulHitTimestamp

public void setLastSuccessfulHitTimestamp(long lastSuccessfulHitTimestamp)

setLastWeekHits

public void setLastWeekHits(long lastWeekHits)

setLastWeekSuccessfulHits

public void setLastWeekSuccessfulHits(long lastWeekSuccessfulHits)

setRequestorName

public void setRequestorName(String requestorName)

setTotalHits

public void setTotalHits(long totalHits)

setTotalSuccessfulHits

public void setTotalSuccessfulHits(long totalSuccessfulHits)

toString

public String toString()

toXmlElement

public Element toXmlElement()

toXmlElement

public Element toXmlElement(String tagName)