org.onebusaway.transit_data_federation.bundle.tasks
Class PreCacheTask

java.lang.Object
  extended by org.onebusaway.transit_data_federation.bundle.tasks.PreCacheTask
All Implemented Interfaces:
Runnable

public class PreCacheTask
extends Object
implements Runnable

Given an instantiated and running instance of a federated transit data bundle, we pre-cache a number of expensive data operations so that the cache will be hot for eventual deployment. That includes caching StopBean, RouteBean and StopsForRouteBean objects, which in turn cache a number of other things.

Author:
bdferris

Constructor Summary
PreCacheTask()
           
 
Method Summary
 void run()
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 void setTransitDataService(TransitDataService service)
           
 void setTransitGraphDao(TransitGraphDao transitGraphDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreCacheTask

public PreCacheTask()
Method Detail

setCacheManager

public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)

setTransitDataService

public void setTransitDataService(TransitDataService service)

setTransitGraphDao

public void setTransitGraphDao(TransitGraphDao transitGraphDao)

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2011 OneBusAway. All Rights Reserved.