Esempio n. 1
0
 @Override
 public Host addHost(PartitionServerAddress address, List<String> flags) throws IOException {
   try {
     return ZkHost.create(
         zk,
         coordinator,
         ZkPath.append(ringPath, HOSTS_PATH_SEGMENT),
         address,
         dataLocationChangeListener,
         flags);
   } catch (Exception e) {
     throw new IOException(e);
   }
 }