Other Components
Newspaper-batch-event-framework
This component consists of the following parts, in order of invocation:
trigger-on-new-batch script - Configured by maintenance and run from a cron job. This script looks for new (not previously processed) batches received from Ninestars. Then calls CreateBatch java module with batch ID and roundtrip number from received batch dir structure, as well as connection-information to DOMS and PID generator.
CreateBatch Java module - Bridges the script with DomsEventClient, by receiving command line arguments, and calling methods to create a batch object in DOMS with a Premis event attached.
DomsEventClient Java module - Creates a batch object in DOMS with a Premis event built using the PremisManipulator.
...
The code can be found here: https://github.com/statsbiblioteket/newspaper-batch-event-framework
The role of this component is to notice when a new batch has arrived on disk, and then create an initial object for the batch in DOMS, to be later expanded upon by other components. The DomsEventClient module depends on our own developed dk.statsbiblioteket.doms.central.centralWebservice-lib and a running DOMS somewhere.
Logging is handled with logback and configured in this file: https://github.com/statsbiblioteket/newspaper-batch-event-framework/blob/master/batch-trigger/src/main/config/logback.xml
Details are described in: https://github.com/statsbiblioteket/newspaper-batch-event-framework/blob/master/README.md