Aggregate ResourceSync Sources
Aggregate ResourceSync Sources
The Destination
in a
ResourceSync Framework configuration keeps zero or
more sets of resources
from zero or more Sources
synchronized.
See also: Definitions.
rs-aggregator
can be used, out-of-the-box, as such a Destination
that aggregates sets of resources
from a list of Sources
.
Clone or download this repository to your local drive.
Start a Docker daemon (if it is not already running) switch to thedocker
directory and run the start-script.
cd rs-aggregator/docker
./start.sh
If you see the rs-aggregator
logo…
then you have just built a Java8 capable docker container, imported required libraries,
compiled, tested and packaged the source code and started the rs-aggregator application.
To gracefully stop the aggregator (without interrupting a synchronisation run)
you can run the stop-script.
./stop.sh
The aggregated resources are in docker/destination
, grouped by host name of the Sources
.Sources
are synchronized per set of resources
described by a capabilityList
.
Each set of resources
will be in a subdirectory contingent to the path that led to the
corresponding capabilityList
. In this base directory you will find:
__MOR__
a directory containing the metadata: the capabilityList
and its child-sitemaps.__SOR__
a directory containing the set of resources
.__SYNC_PROPS__
a directory containing a report for each synchronisation run in theThe configuration files are in cfg
. When running the Docker container rs-aggregator
will
look in docker/cfg
.
cfg/uri-list.txt
| docker/cfg/uri-list.txt
Each set of resources
is denoted by a distinguished capabilityList
. The filecfg/uri-list.txt
should contain a list of URI’s pointing to capabilityLists
you
want to follow. This list is read each time before a synchronisation run, so changes
you make to the list are hot-deployed: you do not need to restart the aggregator.
cfg/syncapp-context.xml
| docker/cfg/syncapp-context.xml
The Spring configuration file. At this moment notable configuration details are:
nl.knaw.dans.rs.aggregator.schedule
.nl.knaw.dans.rs.aggregator.sync.SyncWorker
and companionsnl.knaw.dans.rs.aggregator.syncore.ResourceManager
resource-manager
is dedicated to a specific storage system for the aggregatednl.knaw.dans.rs.aggregator.sync.FsResourceManager