core/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/ConfiguredRemoteFailoverProxyProvider.java
/**
   * Close all the proxy objects which have been opened over the lifetime of
   * this proxy provider.
   */
Close all the proxy objects which have been opened over the lifetime of
this proxy provider.
Close all the proxy objects which have been opened over the lifetime of this proxy provider .
@Override
  public synchronized void close() throws IOException {
    for (AddressRpcProxyPair<T> proxy : proxies) {
      if (proxy.namenode != null) {
        if (proxy.namenode instanceof Closeable) {
          ((Closeable) proxy.namenode).close();
        } else {
          RPC.stopProxy(proxy.namenode);
        }
      }
    }
  }
@ Override public synchronized void close ( ) throws IOException { for ( AddressRpcProxyPair < T > proxy : proxies ) { if ( proxy . namenode != null ) { if ( proxy . namenode instanceof Closeable ) { ( ( Closeable ) proxy . namenode ) . close ( ) ; } else { RPC . stopProxy ( proxy . namenode ) ; } } } }
Close all the proxy objects which have been opened over the lifetime of
 this proxy provider.
Close all the proxy objects which have been opened over the lifetime of this proxy provider .