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. It is also responsible for
keeping the list current.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidShutdown event monitoringReturn list of the current catalog targetsvoidnewCatalogTarget(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.voidremovedCatalogTarget(RequestedCatalogTarget catalogTarget) This catalog target has been removed from the connector.voidupdatedCatalogTarget(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:
newCatalogTargetin interfaceCatalogTargetChangeListener- Parameters:
catalogTarget- new catalog target
-
updatedCatalogTarget
public void updatedCatalogTarget(RequestedCatalogTarget oldCatalogTarget, RequestedCatalogTarget newCatalogTarget) This catalog target has new properties.- Specified by:
updatedCatalogTargetin interfaceCatalogTargetChangeListener- Parameters:
oldCatalogTarget- old valuesnewCatalogTarget- new values
-
removedCatalogTarget
This catalog target has been removed from the connector.- Specified by:
removedCatalogTargetin interfaceCatalogTargetChangeListener- Parameters:
catalogTarget- removed relationship
-
disconnect
Shutdown event monitoring- Throws:
ConnectorCheckedException- something failed in the super class
-