AtlasOfLivingAustralia / biocache-store

Occurrence processing, indexing and batch processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add no media store for sandbox

charvolant opened this issue · comments

The sandbox might be better off not storing thousands of images in a local store. The current options available are a local media store or a remote media store but no null-op media store.

See also #316

Confirmed:

//URL to an instance of the ALA image-service
val remoteMediaStoreUrl = configModule.properties.getProperty("media.store.url", "")
val mediaStore = {
if(StringUtils.isBlank(remoteMediaStoreUrl)){
logger.debug("Using local media store")
LocalMediaStore
} else {
logger.debug("Using remote media store")
RemoteMediaStore
}
}

Sorry, I misunderstood earlier what would happen when the remote media URL was not specified, it doesn't seem to currently have a configuration setting to skip all media loading.

Fixed in #319