Class GenerateCollectionArchivesMessageHandler

java.lang.Object
io.goobi.viewer.model.job.mq.GenerateCollectionArchivesMessageHandler
All Implemented Interfaces:
MessageHandler<MessageStatus>

public class GenerateCollectionArchivesMessageHandler extends Object implements MessageHandler<MessageStatus>
Scheduled dispatcher for per-collection BagIt archive generation. On each run it enumerates the configured collection fields, selects the eligible collections (top-level only, unless sub-collections are enabled in the configuration), and enqueues one TaskType.GENERATE_COLLECTION_ARCHIVE worker message per collection that has at least one enabled content type. It also prunes archive files on disk that no longer correspond to a live collection.

The actual (expensive) archive building happens in the worker handler on the dedicated archives queue, so this dispatcher only performs light-weight Solr faceting and message submission.