com.solidstategroup.sitetracker.processor
Class SiteProcessor

java.lang.Object
  extended by com.solidstategroup.sitetracker.processor.SiteProcessor

public class SiteProcessor
extends java.lang.Object

The SiteProcessor processes all unprocessed page visits within the Replay database.


Field Summary
static java.lang.String SQL_COLUMN_TOTAL
           
static java.lang.String SQL_RECORDS_LEFT
           
 
Constructor Summary
SiteProcessor(java.sql.Connection connection)
           
 
Method Summary
 boolean clearAllStatistics()
          Dunno why this is here?
 int getProcessBatchSize()
           
static void logPageView(PageVisit pageVisit)
          This should log the actually view, If the processor is running it will be stored in an array and then logged after the processor has ran
static void main(java.lang.String[] args)
          Allows the SiteProcessor to be executed from the command line.
 int process()
          Processes all unprocessed page visits.
 boolean resetAllStatistics()
           
 boolean resetStatistics(java.util.Date from, java.util.Date to)
           
 void setProcessBatchSize(int processBatchSize)
           
static java.lang.String stripOutParameter(java.lang.String url, java.lang.String param)
          pulls a parameter out of the request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_COLUMN_TOTAL

public static final java.lang.String SQL_COLUMN_TOTAL
See Also:
Constant Field Values

SQL_RECORDS_LEFT

public static final java.lang.String SQL_RECORDS_LEFT
See Also:
Constant Field Values
Constructor Detail

SiteProcessor

public SiteProcessor(java.sql.Connection connection)
Method Detail

main

public static void main(java.lang.String[] args)
Allows the SiteProcessor to be executed from the command line.

Parameters:
args - . E.g. siteprocessor.jar DBConfig.xml http://www.solidstategroup.com 30 http://www.solidstategroup.com

process

public int process()
Processes all unprocessed page visits. Information such as the page view time can only be ascertained once the session has finished. This method is meant to be run in a batch manner and on a daily basis. Unprocessed page visits are not included in any of the RePlay statistics.

Returns:
The number of new page visits processed.

getProcessBatchSize

public int getProcessBatchSize()

setProcessBatchSize

public void setProcessBatchSize(int processBatchSize)

stripOutParameter

public static java.lang.String stripOutParameter(java.lang.String url,
                                                 java.lang.String param)
pulls a parameter out of the request

Parameters:
url -
param -
Returns:
the parameter

resetAllStatistics

public boolean resetAllStatistics()

resetStatistics

public boolean resetStatistics(java.util.Date from,
                               java.util.Date to)

clearAllStatistics

public boolean clearAllStatistics()
Dunno why this is here?

Returns:
success

logPageView

public static void logPageView(PageVisit pageVisit)
This should log the actually view, If the processor is running it will be stored in an array and then logged after the processor has ran

Parameters:
pageVisit -