com.flickrrecsys.util
Class Caching
java.lang.Object
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 |
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 websiteservletPath - where the peroperty file is locateduserToken - the user token generated for a userflickr - flickr object where it has API key and the secret keylistener - listens to the completed threadsmethodToCall - methods that needs to be calledfilePath - where the athentication file of the nsid is located
run
public void run()
- Run method for threads
- Specified by:
run in interface java.lang.Runnable