Exemplo n.º 1
0
 /**
  * This is called when the CacheManager detects the need ot clear memory. It is intended to be
  * overwritten by derived classes that are holding cached data that is not in the normal putCache
  * facilities provided by this class since that data is actually managed by the CacheManager
  */
 public void clearCachedData() {
   super.clearCachedData();
   List<RadarAdapter> adapters = getAdapters();
   for (Iterator iter = adapters.iterator(); iter.hasNext(); ) {
     RadarAdapter adapter = (RadarAdapter) iter.next();
     adapter.clearCachedData();
   }
 }
Exemplo n.º 2
0
 /** Gets called by the {@link DataManager} when this DataSource has been removed. */
 public void doRemove() {
   if (getAdapters() != null) {
     for (RadarAdapter ra : getAdapters()) {
       ra.doRemove();
     }
   }
   super.doRemove();
 }
Exemplo n.º 3
0
 /** handle legacy bundles */
 public void initAfterUnpersistence() {
   super.initAfterUnpersistence();
   Integer mostRecent = null;
   if (getProperties() != null) {
     mostRecent = (Integer) getProperties().get(MOST_RECENT);
     if (mostRecent == null) {
       mostRecent = (Integer) getProperties().get(RADAR_MOST_RECENT);
     }
   }
   if ((mostRecent != null) && (mostRecent.intValue() > 0)) {
     getPollingInfo().setFileCount(mostRecent.intValue());
   }
 }