Package io.goobi.viewer.model.job.mq
Class GenerateCollectionArchiveMessageHandler
java.lang.Object
io.goobi.viewer.model.job.mq.GenerateCollectionArchiveMessageHandler
- All Implemented Interfaces:
MessageHandler<MessageStatus>
public class GenerateCollectionArchiveMessageHandler
extends Object
implements MessageHandler<MessageStatus>
Worker that (re)generates the BagIt archive for a single collection. The collection is identified by the
field and
collection message properties set by GenerateCollectionArchivesMessageHandler. Generation is skipped when the collection
is unchanged since the last run, empty, or has no enabled content types (see
CollectionArchiveService.generateIfChanged(String, String, CollectionArchiveConfig)).
Transient Solr/IO failures return MessageStatus.ERROR so the message queue retries the job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(ViewerMessage message, MessageQueueManager queueManager) Call this method to execute the ticket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.goobi.viewer.controller.mq.MessageHandler
call, onStartup
-
Constructor Details
-
GenerateCollectionArchiveMessageHandler
public GenerateCollectionArchiveMessageHandler()
-
-
Method Details
-
call
Description copied from interface:MessageHandlerCall this method to execute the ticket.- Specified by:
callin interfaceMessageHandler<MessageStatus>- Parameters:
message- The ticket to handlequeueManager- reference to to manage the queue- Returns:
- V
-
getMessageHandlerName
- Specified by:
getMessageHandlerNamein interfaceMessageHandler<MessageStatus>
-