@Configurable public class SosCacheFeederDAO extends HibernateSessionHolder implements CacheFeederDAO
Modifier and Type | Field and Description |
---|---|
private int |
cacheThreadCount
Defines the number of threads available in the thread pool of the cache
update executor service.
|
private static org.slf4j.Logger |
LOGGER |
DATASOURCE_DAO_IDENTIFIER, IDEPENDET_IDENTIFIER
Constructor and Description |
---|
SosCacheFeederDAO() |
Modifier and Type | Method and Description |
---|---|
private void |
checkCacheNotNull(WritableContentCache cache) |
int |
getCacheThreadCount() |
String |
getDatasourceDaoIdentifier() |
private void |
logCacheLoadTime(long startTime) |
void |
setCacheThreadCount(int threads) |
void |
updateCache(WritableContentCache cache) |
void |
updateCacheOfferings(WritableContentCache cache,
Collection<String> offeringsNeedingUpdate)
Reload all cache data for a list of offerings, for instance after a DeleteSensor event
|
getSession, getSession, returnSession
private static final org.slf4j.Logger LOGGER
private int cacheThreadCount
public int getCacheThreadCount()
@Setting(value="service.cacheThreadCount") public void setCacheThreadCount(int threads) throws ConfigurationException
ConfigurationException
public void updateCache(WritableContentCache cache) throws OwsExceptionReport
updateCache
in interface CacheFeederDAO
OwsExceptionReport
public void updateCacheOfferings(WritableContentCache cache, Collection<String> offeringsNeedingUpdate) throws OwsExceptionReport
CacheFeederDAO
updateCacheOfferings
in interface CacheFeederDAO
cache
- The cache to updateofferingsNeedingUpdate
- A list of offerings to updateOwsExceptionReport
private void checkCacheNotNull(WritableContentCache cache)
private void logCacheLoadTime(long startTime)
public String getDatasourceDaoIdentifier()
getDatasourceDaoIdentifier
in interface DatasourceDaoIdentifier
Copyright © 2012-2015 52north.org. All Rights Reserved.