Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Other Components

Newspaper-batch-event-framework

This component consists of the following parts, in order of invocation:

trigger-on-new-batch script Configured by IT Operations and run from a cron job. This script looks for new (not previously processed) batches received from Ninestars. Then calls the CreateBatch java module with the batch ID and roundtrip number from the received batch directory structure, as well as the connection-information to DOMS and a PID (Persistent ID) 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 representing the triggering 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