org.onebusaway.transit_data_federation.bundle.tasks
Class PreCacheTask
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreCacheTask
public PreCacheTask()
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 © 2012 OneBusAway. All Rights Reserved.