Connector - part of the Open Connector Framework (OCF)
A connector is a java client object that provides applications with access to a data source or service (known as an asset) along with its related metadata.
An OCF connector provides four APIs.
- Connector Lifecycle: manages the lifecycle state of the connector and includes
initialize()
,start()
anddisconnect()
. - Metadata store initialization: if the connector is created by a metadata service then it adds a client to
the metadata server called ConnectedAssetProperties to the connector
between
initialize()
andstart()
. The ConnectedAssetProperties client can be retrieved from the connector instance and used to retrieve metadata about the asset that is stored in the metadata server. - Specific initialization for the type of connector: some types of connectors need additional initialization.
These methods are called by the component creating the connector before the
start()
method is called. - Asset Content: this API is crafted to provide the most natural interface to the Asset's contents. Therefore the Asset Content API is typically different for each type of connector.
OCF connectors are not limited to representing Assets as they are physically implemented. An OCF connector can represent a simplified logical (virtual) asset, such as a data set, that is designed for the needs of a specific application or tool. This type of connector delegates the requests it receives to one or more physical data resources. It is called a virtual connector.
See the Egeria Developer Guide for information on writing connectors.
License: CC BY 4.0, Copyright Contributors to the ODPi Egeria project.