Class OSSUnityCatalogServerSyncCatalog
java.lang.Object
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogServerSyncCatalog
Provides the specialist methods for working with a Unity Catalog (UC) server.
It synchronizes the server's catalogs and sets them up as catalog targets in the
friendship connector that configures the contents of the catalog.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
assetClient, auditLog, catalogGUID, catalogTargetName, catalogTypeName, configurationProperties, connectorName, context, deployedImplementationType, entityTypeName, excludeNames, externalIdClient, includeNames, metadataCollectionQualifiedName, openMetadataStore, propertyFacetClient, propertyHelper, targetPermittedSynchronization, templateGUID, templates, ucConnector, ucFullNameToEgeriaGUID, ucServerEndpoint -
Constructor Summary
ConstructorsConstructorDescriptionOSSUnityCatalogServerSyncCatalog(String connectorName, IntegrationContext context, String catalogTargetName, OpenMetadataRootElement ucServerElement, String dataAccessManagerGUID, String metadataCollectionGUID, String metadataCollectionName, String friendshipConnectorGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, String> templates, Map<String, Object> configurationProperties, List<String> excludeCatalogs, List<String> includeCatalogs, AuditLog auditLog) Set up the catalog synchronizer. -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegrationIteratorrefreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) Review all the catalogs stored in Egeria.protected voidrefreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) Review all the catalogs stored in UC.protected voidupdateElementInEgeria(CatalogInfo catalogInfo, MemberElement memberElement) Update an element in open metadata.Methods inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
addExternalIdentifier, addPropertyFacet, deleteElementInEgeria, getArrayConfigurationProperty, getDateFromLong, getExternalIdLinkProperties, getExternalIdProperties, getPathNameFromStorageLocation, getQualifiedName, getUCCatalogFromMember, getUCCommentFomMember, getUCNameFromMember, getUCPropertiesFromMember, getUCSchemaFromMember, getUCStorageLocationFromMember, noMismatchInExternalIdentifier, throwBadBeanClass, throwMissingPropertyValue
-
Constructor Details
-
OSSUnityCatalogServerSyncCatalog
public OSSUnityCatalogServerSyncCatalog(String connectorName, IntegrationContext context, String catalogTargetName, OpenMetadataRootElement ucServerElement, String dataAccessManagerGUID, String metadataCollectionGUID, String metadataCollectionName, String friendshipConnectorGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, String> templates, Map<String, throws UserNotAuthorizedException, InvalidParameterExceptionObject> configurationProperties, List<String> excludeCatalogs, List<String> includeCatalogs, AuditLog auditLog) Set up the catalog synchronizer.- Parameters:
connectorName- name of this connectorcontext- context for the connectorcatalogTargetName- the catalog target nameucServerElement- description of the UC Server - including its relationships to known catalogsdataAccessManagerGUID- the data access manager software capability for this elementmetadataCollectionGUID- the metadata collection to use for all open metadata elements relating to this server.metadataCollectionName- the metadata collection to use for all open metadata elements relating to this server.friendshipConnectorGUID- optional unique name of inside catalog integration connectortargetPermittedSynchronization- the policy that controls the direction of metadata exchangeucConnector- connector for accessing UCucServerEndpoint- the server endpoint used to constructing the qualified namestemplates- templates supplied through the catalog targetconfigurationProperties- configuration properties supplied through the catalog targetexcludeCatalogs- list of catalogs to ignore (and include all others)includeCatalogs- list of catalogs to include (and ignore all others) - overrides excludeCatalogsauditLog- logging destination- Throws:
UserNotAuthorizedException- connector disconnectedInvalidParameterException- missing template
-
-
Method Details
-
refreshEgeria
protected IntegrationIterator refreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the catalogs stored in Egeria.- Specified by:
refreshEgeriain classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
parentGUID- unique identifier of the parentparentRelationshipTypeName- relationship type between parent and elements to iterate throughrelationshipProperties- optional properties for the relationship- Returns:
- iterator
- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-
refreshUnityCatalog
protected void refreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the catalogs stored in UC.- Specified by:
refreshUnityCatalogin classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
parentGUID- unique identifier of the parentparentRelationshipTypeName- relationship type between parent and elements to iterate throughrelationshipProperties- optional properties for the relationshipiterator- Metadata collection iterator- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-
updateElementInEgeria
protected void updateElementInEgeria(CatalogInfo catalogInfo, MemberElement memberElement) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update an element in open metadata.- Parameters:
catalogInfo- object from UCmemberElement- existing element in egeria- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- authorization error
-