corelib.services.web.statistics
Class StatisticEntry

java.lang.Object
  extended by corelib.services.web.statistics.StatisticEntry

public class StatisticEntry
extends java.lang.Object

This class provides usage statistics of the considered web application for a date. These classes data are stored in a XML file. Here the XML structure associated to this class.

 
     <StatisticEntry date="2010-11-01" sessionCount="1">
         <Navigators Firefox="1"/>
         <Platforms Linux="1"/>
     </StatisticEntry>
 

Since:
0.2.0
Author:
Dominique Liard

Constructor Summary
StatisticEntry(java.lang.String date, int sessionCount)
          Create a new instance initialized with informations stored into a statistic file.
 
Method Summary
 java.lang.String getDate()
          Returns the date where these informations are taken.
 java.util.Hashtable<java.lang.String,java.lang.Integer> getNavigatorCounters()
          Returns all navigator counters for this statistic entry.
 java.util.Hashtable<java.lang.String,java.lang.Integer> getPlatformCounters()
          Returns all platform (operating system) counters for this statistic entry.
 int getSessionCount()
          Returns the number of session opened for the associated date.
 void increaseBrowserCounter(java.lang.String browserName)
          Increase browser statistics for the considered browser, in this statistic entry.
 void increasePlatformCounter(java.lang.String platformName)
          Increase platform statistics for the considered operating system, in this statistic entry.
 void increaseSessionCount()
          Increase the session count for this statistic entry.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticEntry

public StatisticEntry(java.lang.String date,
                      int sessionCount)
Create a new instance initialized with informations stored into a statistic file.

Parameters:
date - The date of this statistic entry.
sessionCount - The number of session opened at this date.
Method Detail

getDate

public java.lang.String getDate()
Returns the date where these informations are taken.

Returns:
The date of this statistic entry.

getSessionCount

public int getSessionCount()
Returns the number of session opened for the associated date.

Returns:
The number of session opened.

increaseSessionCount

public void increaseSessionCount()
Increase the session count for this statistic entry.


getNavigatorCounters

public java.util.Hashtable<java.lang.String,java.lang.Integer> getNavigatorCounters()
Returns all navigator counters for this statistic entry.

Returns:
All navigator counters.

increaseBrowserCounter

public void increaseBrowserCounter(java.lang.String browserName)
Increase browser statistics for the considered browser, in this statistic entry.

Parameters:
browserName - The name of the used browser.

getPlatformCounters

public java.util.Hashtable<java.lang.String,java.lang.Integer> getPlatformCounters()
Returns all platform (operating system) counters for this statistic entry.

Returns:
All platform counters.

increasePlatformCounter

public void increasePlatformCounter(java.lang.String platformName)
Increase platform statistics for the considered operating system, in this statistic entry.

Parameters:
platformName - The name of the used operating system.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.