Search in sources :

Example 1 with SASCatalogRestClient

use of org.odpi.openmetadata.connector.sas.client.SASCatalogRestClient in project egeria-connector-sas-viya by odpi.

the class RepositoryConnector method connectToCatalog.

private void connectToCatalog(String methodName) throws Exception {
    if (this.sasCatalogClient == null) {
        EndpointProperties endpointProperties = connectionProperties.getEndpoint();
        if (endpointProperties == null) {
            raiseConnectorCheckedException(ErrorCode.REST_CLIENT_FAILURE, methodName, null, "null");
        } else {
            this.url = endpointProperties.getProtocol() + "://" + endpointProperties.getAddress();
            this.sasCatalogClient = new SASCatalogRestClient(this.url, this.securedProperties.get("userId"), this.securedProperties.get("password"));
        }
    }
    metadataCollection = new MetadataCollection(this, serverName, repositoryHelper, repositoryValidator, metadataCollectionId);
}
Also used : SASCatalogRestClient(org.odpi.openmetadata.connector.sas.client.SASCatalogRestClient) OMRSMetadataCollection(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection) EndpointProperties(org.odpi.openmetadata.frameworks.connectors.properties.EndpointProperties)

Aggregations

SASCatalogRestClient (org.odpi.openmetadata.connector.sas.client.SASCatalogRestClient)1 EndpointProperties (org.odpi.openmetadata.frameworks.connectors.properties.EndpointProperties)1 OMRSMetadataCollection (org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.OMRSMetadataCollection)1