jap
Class JAPFeedback

java.lang.Object
  extended by anon.util.Updater
      extended by anon.infoservice.update.AbstractDatabaseUpdater
          extended by jap.JAPFeedback
All Implemented Interfaces:
java.util.Observer

final class JAPFeedback
extends AbstractDatabaseUpdater


Nested Class Summary
 
Nested classes/interfaces inherited from class anon.util.Updater
Updater.ConstantUpdateInterval, Updater.DynamicUpdateInterval, Updater.IUpdateInterval, Updater.ObservableInfo
 
Field Summary
private  Updater.DynamicUpdateInterval m_updateInterval
           
private static long MIN_UPDATE_INTERVAL_MS
           
static long UPDATE_INTERVAL_MS
           
 
Fields inherited from class anon.infoservice.update.AbstractDatabaseUpdater
KEEP_ENTRY_FACTOR
 
Constructor Summary
JAPFeedback()
           
 
Method Summary
protected  boolean doCleanup(java.util.Hashtable a_newEntries)
          Does some cleanup operations of the database.
protected  java.util.Hashtable getEntrySerials()
           
 java.lang.Class getUpdatedClass()
           
protected  java.util.Hashtable getUpdatedEntries(java.util.Hashtable a_dummy)
           
protected  boolean isUpdatePaused()
          May be overwritten if an update is currently no wanted.
 
Methods inherited from class anon.infoservice.update.AbstractDatabaseUpdater
getPreferredEntry, isFirstUpdateDone, protectFromCleanup, setPreferredEntry, updateInternal, wasUpdateSuccessful
 
Methods inherited from class anon.util.Updater
getObservableInfo, getUpdatedClassName, getUpdateInterval, start, stop, update, update, updateAsync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_INTERVAL_MS

public static final long UPDATE_INTERVAL_MS
See Also:
Constant Field Values

MIN_UPDATE_INTERVAL_MS

private static final long MIN_UPDATE_INTERVAL_MS
See Also:
Constant Field Values

m_updateInterval

private Updater.DynamicUpdateInterval m_updateInterval
Constructor Detail

JAPFeedback

public JAPFeedback()
Method Detail

getUpdatedClass

public java.lang.Class getUpdatedClass()
Specified by:
getUpdatedClass in class Updater

doCleanup

protected boolean doCleanup(java.util.Hashtable a_newEntries)
Description copied from class: AbstractDatabaseUpdater
Does some cleanup operations of the database. All old entries that were not updated by the new entries are removed. Subclasses may overwrite this method to suppress or alter this behavior. This method is called by updateInternal().

Overrides:
doCleanup in class AbstractDatabaseUpdater
Parameters:
a_newEntries - the list of new entries
Returns:
boolean

isUpdatePaused

protected boolean isUpdatePaused()
Description copied from class: Updater
May be overwritten if an update is currently no wanted.

Overrides:
isUpdatePaused in class Updater
Returns:
boolean

getUpdatedEntries

protected java.util.Hashtable getUpdatedEntries(java.util.Hashtable a_dummy)
Specified by:
getUpdatedEntries in class AbstractDatabaseUpdater

getEntrySerials

protected java.util.Hashtable getEntrySerials()
Specified by:
getEntrySerials in class AbstractDatabaseUpdater