com.ths.csa
Class CSAResultSet

java.lang.Object
  |
  +--com.ths.csa.CSAResultSet

public class CSAResultSet
extends java.lang.Object


Field Summary
 double concurrentSessionsAverage
          Average number of concurrent sessions when a user logs in.
 int concurrentSessionsSum
          Concurrent sessions sum.
 int[] daysOfTheWeekCounted
          Number of days of the week counted.
 double durationAverage
          Average duration of all counted sessions.
 double durationSum
          Total of all session durations.
 java.util.Vector errorMessages
          Contains Strings of any error messages generated during processing.
 int[] loginsByDayOfTheWeek
          Logins on each day of the week.
 int[] loginsByHour
          Logins by hour of the day.
 int logouts
          Sessions ending by logout.
 CSAVector[] pageOrders
          Tracks user paths using CSAVectors of CSAPage objects.
 java.util.Vector pagesVisited
          Vector of CSAPages representing all the pages visited.
 java.util.Vector sessionData
          Vector of CSAVectors containing additional session related data.
 int sessionsCounted
          Total sessions counted in the analysis.
 int sessionsDropped
          Total sessions loaded but not used because malformed.
 int timeouts
          Sessions ending by timeout.
 int zeroLengthSessions
          Number of zero length sessions.
 
Constructor Summary
CSAResultSet()
          Initiailizes the pageOrders array with new CSAVectors.
 
Method Summary
 CSAPage getPage(java.lang.String pageName)
          Returns the CSAPage from pagesVisited if a matching pageName is found.
 CSAVector getSessionDataCSAVector(java.lang.String fieldName)
          Returns the CSAVector from sessionData with matching fieldName.
protected  CSAPage incrementHit(java.lang.String pageName)
          Gets the page from the pagesVisited Vector (adds a new CSAPage if one wasn't found) via getPage(), increments the number of hits that page has received, then re-sorts the pagesVisited Vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionsCounted

public int sessionsCounted
Total sessions counted in the analysis.

sessionsDropped

public int sessionsDropped
Total sessions loaded but not used because malformed.

durationSum

public double durationSum
Total of all session durations. (used for calculating the average)

durationAverage

public double durationAverage
Average duration of all counted sessions. Zero length sessions are not counted.

zeroLengthSessions

public int zeroLengthSessions
Number of zero length sessions. i.e. sessions consisting of one page hit only, then a session timeout.

concurrentSessionsSum

public int concurrentSessionsSum
Concurrent sessions sum. (used for calculating the average)

concurrentSessionsAverage

public double concurrentSessionsAverage
Average number of concurrent sessions when a user logs in.

logouts

public int logouts
Sessions ending by logout.

timeouts

public int timeouts
Sessions ending by timeout.

loginsByHour

public int[] loginsByHour
Logins by hour of the day.

daysOfTheWeekCounted

public int[] daysOfTheWeekCounted
Number of days of the week counted.

loginsByDayOfTheWeek

public int[] loginsByDayOfTheWeek
Logins on each day of the week.

pageOrders

public CSAVector[] pageOrders
Tracks user paths using CSAVectors of CSAPage objects.

pagesVisited

public java.util.Vector pagesVisited
Vector of CSAPages representing all the pages visited.

sessionData

public java.util.Vector sessionData
Vector of CSAVectors containing additional session related data.

errorMessages

public java.util.Vector errorMessages
Contains Strings of any error messages generated during processing.
Constructor Detail

CSAResultSet

public CSAResultSet()
Initiailizes the pageOrders array with new CSAVectors.
Method Detail

getSessionDataCSAVector

public CSAVector getSessionDataCSAVector(java.lang.String fieldName)
Returns the CSAVector from sessionData with matching fieldName. If not found, creates a new CSAVector for that fieldName, adds it to sessionData, and returns it.

getPage

public CSAPage getPage(java.lang.String pageName)
Returns the CSAPage from pagesVisited if a matching pageName is found. Else it creates a new CSAPage with the name pageName, adds it to the pagesVisited CSAVector, and returns the page.

incrementHit

protected CSAPage incrementHit(java.lang.String pageName)
Gets the page from the pagesVisited Vector (adds a new CSAPage if one wasn't found) via getPage(), increments the number of hits that page has received, then re-sorts the pagesVisited Vector.