private static SyndicateFileSystem createHSyndicateFS(Configuration conf, String address) throws IOException { SyndicateFSConfiguration sconf = HSyndicateConfigUtils.createSyndicateConf(conf, address); try { return new SyndicateFileSystem(sconf); } catch (InstantiationException ex) { throw new IOException(ex.getCause()); } }
public HSyndicateUGMonitor(Configuration conf) throws IOException { String[] gateway_hostnames = HSyndicateConfigUtils.listSyndicateUGHostsWithPort(conf); for (String gateway_hostname : gateway_hostnames) { if (!syndicateFSs.containsKey(gateway_hostname)) { usergateway_hostnames.add(gateway_hostname); SyndicateFileSystem fs = createHSyndicateFS(conf, gateway_hostname); syndicateFSs.put(gateway_hostname, fs); } } }