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);
}
Aggregations