com.flickrrecsys.util
Class Caching

java.lang.Object
  extended by com.flickrrecsys.util.Caching
All Implemented Interfaces:
java.lang.Runnable

public class Caching
extends java.lang.Object
implements java.lang.Runnable

This class perform caching based on the method name passed to the run method constant values used from the properties file are as follow: - favouritePhotos - contacts - tags - info - groups - noCoacToExtract - noFavoPhotosToLook This method implements runnable in order to run threads

Author:
Hossein Ghodsi
See Also:
properties file for all other constant

Constructor Summary
Caching(java.lang.String nsid, java.lang.String servletPath, java.lang.String userToken, com.aetrion.flickr.Flickr flickr, ThreadListener listener, java.lang.String methodToCall, java.lang.String filePath)
          Construction for caching, sets all the parameters passed to this method to global variables.
 
Method Summary
 void run()
          Run method for threads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Caching

public Caching(java.lang.String nsid,
               java.lang.String servletPath,
               java.lang.String userToken,
               com.aetrion.flickr.Flickr flickr,
               ThreadListener listener,
               java.lang.String methodToCall,
               java.lang.String filePath)
Construction for caching, sets all the parameters passed to this method to global variables.

Parameters:
nsid - user id taken from the flickr website
servletPath - where the peroperty file is located
userToken - the user token generated for a user
flickr - flickr object where it has API key and the secret key
listener - listens to the completed threads
methodToCall - methods that needs to be called
filePath - where the athentication file of the nsid is located
Method Detail

run

public void run()
Run method for threads

Specified by:
run in interface java.lang.Runnable