|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.recommender.server.DBManager
Implementation of the DBManager. This class handles the database accesses necessary to the CF Engine Application. This includes reading and writing out User Info, Item Info, Ratings Info. The interface should be generic enough.
Field Summary | |
static long |
minimumRunIntervalMs
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DBManager()
Constructor, get the database to contact with and establish connection with it. |
Method Summary | |
java.lang.String |
getItemFieldName()
Accessor, return itemFieldName |
int |
getMaxItem()
Accessor, return maxItems |
int |
getMaxUser()
Accessor, return maxUsers |
java.lang.String |
getRatingFieldName()
Accessor, return ratingFiledName |
java.lang.String |
getRatingTableName()
Accessor, return ratingTableName |
java.lang.String |
getUserFieldName()
Accessor, return userFieldName |
void |
run()
An infinite loop, whenever the size of DBList is greater than 50, get a copy of the dblist and insert all ratings in the list into database. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long minimumRunIntervalMs
Constructor Detail |
public DBManager()
Method Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.String getRatingTableName()
public java.lang.String getUserFieldName()
public java.lang.String getItemFieldName()
public java.lang.String getRatingFieldName()
public int getMaxUser()
public int getMaxItem()
|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |