com.flickrrecsys.util
Class CalculateDuration
java.lang.Object
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
|
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 |
CalculateDuration
public CalculateDuration()
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 websitestartingTime - the starting timeservletPath - 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 websiteservletPath - where the database details file is located