Class BitolDocumentPublisherIntegrationConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, CatalogTargetFactory, IntegrationConnector, OpenMetadataEventListener

public class BitolDocumentPublisherIntegrationConnector extends DynamicIntegrationConnectorBase implements OpenMetadataEventListener
BitolDocumentPublisherIntegrationConnector is the outbound side of Egeria's Bitol support. It generates an Open Data Product Standard (ODPS) document for each digital product, and an Open Data Contract Standard (ODCS) document for each data sharing agreement, and publishes them to the Bitol listeners registered in the same integration daemon (for example the file store connector, which writes them to a directory ready to commit to git).

Documents are generated on each refresh: for every product that is a member of a DigitalProductCatalog catalog target (together with the agreements referenced by the product's ports), and for each digital product or agreement that an event has reported a change to since the last refresh. Each element is generated at most once per refresh, however many events arrived for it and however many products share it. Generating a document takes thousands of reads, and a product receives many events in a burst - create, update, classify, reclassify - so generating on every event left the connector hours behind its events on a busy repository. Each process that the lineage shows assembling a product's data becomes an input port of the product; a process with no data contract gets a sparsely populated draft one, catalogued and published with the product so that it can be filled out later.

A document is only published when its content differs from the last document generated for the same element, so a cataloguer running in the same daemon does not cause an endless exchange of identical documents.