/** * A method to get multiple {@link IMetaStoreClient}s while preventing deadlocks. * @param namedPools A map from String to {@link HiveMetastoreClientPool}. * @return a {@link MultiClient} with a {@link IMetaStoreClient} for each entry in the input map. The client can * be retrieved by its name in the input map. * @throws IOException */ public static synchronized MultiClient safeGetClients(Map<String, HiveMetastoreClientPool> namedPools) throws IOException { return new MultiClient(namedPools); }
/** * A method to get multiple {@link IMetaStoreClient}s while preventing deadlocks. * @param namedPools A map from String to {@link HiveMetastoreClientPool}. * @return a {@link MultiClient} with a {@link IMetaStoreClient} for each entry in the input map. The client can * be retrieved by its name in the input map. * @throws IOException */ public static synchronized MultiClient safeGetClients(Map<String, HiveMetastoreClientPool> namedPools) throws IOException { return new MultiClient(namedPools); }