Package uk.ac.ebi.intact.application.synchron

This package provides a capability for different IntAct servers (nodes) to exchange data entries.

See:
          Description

Class Summary
Collector Purpose: collects XML files from others IntAct nodes
XmlDumper Dump all data to XML in a normalised XML format.
XmlLoader Purpose : extracts data objects from an XML file, inserts new data entries in the local database and update already existing data entries.
 

Package uk.ac.ebi.intact.application.synchron Description

This package provides a capability for different IntAct servers (nodes) to exchange data entries.

The package uses both Castor and OJB object-relational mapping tool to provide an object view of a backend relational database: OJB provides the capability to map the persistent entries contains in the database into java Objects, and Castor the one to map the Objects into a XML file.

Configuration and mapping files requirements

This package requires the configuration and mapping files for Castor and OJB, and the file Properties.pro containing the name of the directories where the XML files have to be downloaded and from where they can be uploaded, and the prefix used for the node (those three files should be placed into the config directory). About the node prefix: this prefix is used to identify which of the nodes described in the database (table intactnode) is the local one, and to recognize data entries that have been created by this node, as their accession number start with this prefix (e.g. EBI for the EBI local node).

Dumping data: class XmlDumper

This executable class fetches in the database all data entries which ac is prefixed by the node's prefix using OJB and dump it into a XML file using Castor.

Loading data: class XmlLoader

This second executable class parses an XML file by using Castor and loads the data entries contained in this file into the database with OJB.

Collecting files: class Collector

This class collects the XML files provided by the other Intact nodes (those that are not set as rejected by the node).

Package Specification

(none)

Related Documentation

how to add a new attribute in intact model and keep it usable by synchron

Since:
JDK1.1


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk