Class DatabaseIntegrationModuleBase
java.lang.Object
org.odpi.openmetadata.adapters.connectors.apacheatlas.integration.modules.AtlasIntegrationModuleBase
org.odpi.openmetadata.adapters.connectors.apacheatlas.integration.modules.AtlasRegisteredIntegrationModuleBase
org.odpi.openmetadata.adapters.connectors.apacheatlas.integration.modules.DatabaseIntegrationModuleBase
- All Implemented Interfaces:
RegisteredIntegrationModule
- Direct Known Subclasses:
ApacheHiveIntegrationModule,RDBMSIntegrationModule
DatabaseIntegrationModuleBase abstracts the process of synchronizing relational metadata from Apache Atlas, so it is
independent of the actual Apache Atlas types. The subclasses supply the types. This is because Apache Atlas has multiple type
definitions for this type of metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseIntegrationModuleBase(String connectorName, String moduleName, String atlasDatabaseTypeName, String atlasDatabaseTablesPropertyName, String atlasDatabaseTableTypeName, String atlasDatabaseColumnsPropertyName, String atlasDatabaseColumnTypeName, org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties connectionProperties, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, org.odpi.openmetadata.integrationservices.catalog.connector.CatalogIntegratorContext myContext, String targetRootURL, ApacheAtlasRESTConnector atlasClient, List<org.odpi.openmetadata.frameworks.connectors.Connector> embeddedConnectors) Constructor for the module is supplied with the runtime context in order to operate. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessEvent(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerOutTopicEvent event) Process an event that was published by the Asset Manager OMAS.voidrefresh()Requests that the connector does a comparison of the metadata in the third party technology and open metadata repositories.Methods inherited from class org.odpi.openmetadata.adapters.connectors.apacheatlas.integration.modules.AtlasRegisteredIntegrationModuleBase
getListenForTypes, getModuleName, getSupportedEntityTypes
-
Constructor Details
-
DatabaseIntegrationModuleBase
public DatabaseIntegrationModuleBase(String connectorName, String moduleName, String atlasDatabaseTypeName, String atlasDatabaseTablesPropertyName, String atlasDatabaseTableTypeName, String atlasDatabaseColumnsPropertyName, String atlasDatabaseColumnTypeName, org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties connectionProperties, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, org.odpi.openmetadata.integrationservices.catalog.connector.CatalogIntegratorContext myContext, String targetRootURL, ApacheAtlasRESTConnector atlasClient, List<org.odpi.openmetadata.frameworks.connectors.Connector> embeddedConnectors) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Constructor for the module is supplied with the runtime context in order to operate.- Parameters:
connectorName- name of the connector (for messages)moduleName- name of this moduleatlasDatabaseTypeName- name of type in atlas used for the databaseatlasDatabaseTablesPropertyName- name of the property used to navigate from the database to its tables.atlasDatabaseTableTypeName- name of the type used to represent a database table in atlasatlasDatabaseColumnsPropertyName- name of the property used to navigate from a database table to its columnsatlasDatabaseColumnTypeName- name of the type used to represent a database column in atlasconnectionProperties- connection properties used to start the connectorauditLog- logging destinationmyContext- integration contexttargetRootURL- URL to connect to Apache AtlasatlasClient- client to connect to Apache AtlasembeddedConnectors- list of any embedded connectors (such as secrets connector and topic connector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security problem
-
-
Method Details
-
refresh
public void refresh() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionRequests that the connector does a comparison of the metadata in the third party technology and open metadata repositories. Refresh is called when the integration connector first starts and then at intervals defined in the connector's configuration as well as any external REST API calls to explicitly refresh the connector.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem with the connector. It is not able to refresh the metadata.
-
processEvent
public void processEvent(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerOutTopicEvent event) Process an event that was published by the Asset Manager OMAS. The listener is only registered if metadata is flowing from the open metadata ecosystem to Apache Atlas.- Parameters:
event- event object
-