use of org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol in project ozone by apache.
the class ReconControllerModule method getSCMProtocol.
@Provides
StorageContainerLocationProtocol getSCMProtocol(final OzoneConfiguration configuration) {
StorageContainerLocationProtocol storageContainerLocationProtocol = null;
storageContainerLocationProtocol = newContainerRpcClient(configuration);
return storageContainerLocationProtocol;
}
use of org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol in project ozone by apache.
the class HAUtils method getScmContainerClient.
public static StorageContainerLocationProtocol getScmContainerClient(ConfigurationSource conf) {
SCMContainerLocationFailoverProxyProvider proxyProvider = new SCMContainerLocationFailoverProxyProvider(conf, null);
StorageContainerLocationProtocol scmContainerClient = TracingUtil.createProxy(new StorageContainerLocationProtocolClientSideTranslatorPB(proxyProvider), StorageContainerLocationProtocol.class, conf);
return scmContainerClient;
}
Aggregations