Class RequestedCatalogTargetsManager
java.lang.Object
org.odpi.openmetadata.frameworks.integration.connectors.RequestedCatalogTargetsManager
- All Implemented Interfaces:
CatalogTargetChangeListener
Manages the map of catalog targets that this integration connector is working with.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Shutdown event monitoringReturn list of the current catalog targetsvoid
newCatalogTarget
(RequestedCatalogTarget catalogTarget) This catalog target has been created since the last refresh.refreshKnownCatalogTargets
(IntegrationContext integrationContext, CatalogTargetIntegrator catalogTargetIntegrator) Return a list of requested catalog targets for the connector.void
removedCatalogTarget
(RequestedCatalogTarget catalogTarget) This catalog target has been removed from the connector.void
updatedCatalogTarget
(RequestedCatalogTarget oldCatalogTarget, RequestedCatalogTarget newCatalogTarget) This catalog target has new properties.
-
Constructor Details
-
RequestedCatalogTargetsManager
public RequestedCatalogTargetsManager(Map<String, Object> connectorConfigProperties, String connectorName, AuditLog auditLog) Constructor - passed the values from the integration connector that are needed by each catalog target,- Parameters:
connectorConfigProperties
- base configuration properties - these are overlaid with the config properties from the catalog target relationshipconnectorName
- can of this connector for error messagesauditLog
- audit log for this connector
-
-
Method Details
-
refreshKnownCatalogTargets
public List<RequestedCatalogTarget> refreshKnownCatalogTargets(IntegrationContext integrationContext, CatalogTargetIntegrator catalogTargetIntegrator) throws ConnectorCheckedException Return a list of requested catalog targets for the connector. These are extracted from the metadata store.- Parameters:
integrationContext
- the integration component that will process each catalog targetcatalogTargetIntegrator
- subclass of connector implementation- Throws:
ConnectorCheckedException
- there is a problem with the connector. It is not able to refresh the metadata.
-
getRequestedCatalogTargets
Return list of the current catalog targets- Returns:
- list of the current catalog targets
-
newCatalogTarget
This catalog target has been created since the last refresh.- Specified by:
newCatalogTarget
in interfaceCatalogTargetChangeListener
- Parameters:
catalogTarget
- new catalog target
-
updatedCatalogTarget
public void updatedCatalogTarget(RequestedCatalogTarget oldCatalogTarget, RequestedCatalogTarget newCatalogTarget) This catalog target has new properties.- Specified by:
updatedCatalogTarget
in interfaceCatalogTargetChangeListener
- Parameters:
oldCatalogTarget
- old valuesnewCatalogTarget
- new values
-
removedCatalogTarget
This catalog target has been removed from the connector.- Specified by:
removedCatalogTarget
in interfaceCatalogTargetChangeListener
- Parameters:
catalogTarget
- removed relationship
-
disconnect
Shutdown event monitoring- Throws:
ConnectorCheckedException
- something failed in the super class
-