org.jscience.net
Class ServerLogAnalyser

java.lang.Object
  extended by org.jscience.net.ServerLogAnalyser

public class ServerLogAnalyser
extends java.lang.Object

provides several methods to analyse a ServerLog


Constructor Summary
ServerLogAnalyser(ServerLog log)
          Creates a new ServerLogAnalyser object.
 
Method Summary
 java.lang.String[] getGoogleSearchStrings()
          DOCUMENT ME!
 java.util.Map<java.lang.String,java.lang.Integer> refererDomainCount(Filter<ServerLogEntry> filter)
          returns a map with the key elements being Strings denoting the referer domain name and the mapped value (an Integer) denoting the count.
 java.util.Map<java.lang.String,java.lang.Integer> refererHostCount(Filter<ServerLogEntry> filter)
          returns a map with the key elements being Strings denoting the referer host name and the mapped value (an Integer) denoting the count.
 void writeRefererDomainCount(java.io.File file)
          DOCUMENT ME!
 void writeRefererHostCount(java.io.File file)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLogAnalyser

public ServerLogAnalyser(ServerLog log)
Creates a new ServerLogAnalyser object.

Parameters:
log - DOCUMENT ME!
Method Detail

getGoogleSearchStrings

public java.lang.String[] getGoogleSearchStrings()
DOCUMENT ME!

Returns:
DOCUMENT ME!

writeRefererHostCount

public void writeRefererHostCount(java.io.File file)
                           throws java.io.IOException
DOCUMENT ME!

Parameters:
file - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

refererHostCount

public java.util.Map<java.lang.String,java.lang.Integer> refererHostCount(Filter<ServerLogEntry> filter)
                                                                   throws java.io.IOException
returns a map with the key elements being Strings denoting the referer host name and the mapped value (an Integer) denoting the count.

Parameters:
filter - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

writeRefererDomainCount

public void writeRefererDomainCount(java.io.File file)
                             throws java.io.IOException
DOCUMENT ME!

Parameters:
file - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

refererDomainCount

public java.util.Map<java.lang.String,java.lang.Integer> refererDomainCount(Filter<ServerLogEntry> filter)
                                                                     throws java.io.IOException
returns a map with the key elements being Strings denoting the referer domain name and the mapped value (an Integer) denoting the count.

Parameters:
filter - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!