com.flickrrecsys.util
Class CalculateDuration

java.lang.Object
  extended by com.flickrrecsys.util.CalculateDuration

public class CalculateDuration
extends java.lang.Object

This class deals with duration of time it records the time it takes for all thread to complete their execution the logs will be used to evalute the speed of the system

Author:
Hossein Ghodsi

Constructor Summary
CalculateDuration()
           
 
Method Summary
 void recordElapsedTime(java.lang.String nsid, java.lang.String servletPath)
          This method updates the database when all threads completed their execution
 void recordStartingTime(java.lang.String nsid, java.sql.Timestamp startingTime, java.lang.String servletPath)
          This method records the starting time each time a user tries to use the system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateDuration

public CalculateDuration()
Method Detail

recordStartingTime

public void recordStartingTime(java.lang.String nsid,
                               java.sql.Timestamp startingTime,
                               java.lang.String servletPath)
This method records the starting time each time a user tries to use the system

Parameters:
nsid - user id from the flickr website
startingTime - the starting time
servletPath - where the database details file is located

recordElapsedTime

public void recordElapsedTime(java.lang.String nsid,
                              java.lang.String servletPath)
This method updates the database when all threads completed their execution

Parameters:
nsid - user id from the Flickr website
servletPath - where the database details file is located