/** * This method will attempt to load the cluster defaults and update the configuration if * necessary. * * This method should be synchronized so that concurrent calls to it don't continually overwrite * the previous configuration. The cluster defaults should only ever need to be updated once * per {@link ClientContext} reference. * * @param address the address to load cluster defaults from * @throws AlluxioStatusException */ protected synchronized void updateWithClusterDefaults(InetSocketAddress address) throws AlluxioStatusException { mConf = ConfigurationUtils.loadClusterDefaults(address, mConf); }
/** * Loads cluster default values from the meta master. * * @param address the master address */ public static synchronized void loadClusterDefaults(InetSocketAddress address) throws AlluxioStatusException { AlluxioConfiguration conf = ConfigurationUtils.loadClusterDefaults(address, global()); sConf = new InstancedConfiguration(conf.copyProperties(), conf.clusterDefaultsLoaded()); }