com.ths.csa
Class ClickStreamAnalyzer
java.lang.Object
|
+--com.ths.csa.ClickStreamAnalyzer
- public class ClickStreamAnalyzer
- extends java.lang.Object
Method Summary |
CSAResultSet |
doAnalysis(java.lang.String[] folderNames)
Creates a CSAParseHelper (one per call to avoid concurrency issues) to open all the session
XML files found in the folderNames array (ensures against duplicates), parses them, summarizes them,
and returns the result as a CSAResultSet. |
java.lang.String |
getFolderRoot()
Returns the logs root folder as set in initialize() |
java.util.Vector |
getFolderTree(boolean refresh)
Returns a Vector of File objects of the names of the directories in the log file directory tree. |
void |
initialize(java.lang.String logsRootFolder,
java.io.PrintStream consoleMessages)
Initializes the application scoped bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickStreamAnalyzer
public ClickStreamAnalyzer()
initialize
public void initialize(java.lang.String logsRootFolder,
java.io.PrintStream consoleMessages)
- Initializes the application scoped bean.
- logsRootFolder - path to the top level folder containing the session XML files.
- consoleMessages - prints any unexpected problems to this stream
getFolderTree
public java.util.Vector getFolderTree(boolean refresh)
throws java.lang.Exception
- Returns a Vector of File objects of the names of the directories in the log file directory tree.
Caches the results for subsequent calls. Regenerates the Vector if refresh is true
or the Vector is null or empty.
doAnalysis
public CSAResultSet doAnalysis(java.lang.String[] folderNames)
- Creates a CSAParseHelper (one per call to avoid concurrency issues) to open all the session
XML files found in the folderNames array (ensures against duplicates), parses them, summarizes them,
and returns the result as a CSAResultSet.
getFolderRoot
public java.lang.String getFolderRoot()
- Returns the logs root folder as set in initialize()