/** * Sets the master id and registers with the Alluxio leader master. */ private void setIdAndRegister() throws IOException { mMasterId.set(mMasterClient.getId(mMasterAddress)); mMasterClient.register(mMasterId.get(), ConfigurationUtils.getConfiguration(ServerConfiguration.global(), Scope.MASTER)); }
/** * Registers with the Alluxio master. This should be called before the continuous heartbeat thread * begins. */ private void registerWithMaster() throws IOException { BlockStoreMeta storeMeta = mBlockWorker.getStoreMetaFull(); StorageTierAssoc storageTierAssoc = new WorkerStorageTierAssoc(); List<ConfigProperty> configList = ConfigurationUtils.getConfiguration(ServerConfiguration.global(), Scope.WORKER); mMasterClient.register(mWorkerId.get(), storageTierAssoc.getOrderedStorageAliases(), storeMeta.getCapacityBytesOnTiers(), storeMeta.getUsedBytesOnTiers(), storeMeta.getBlockList(), configList); }
ConfigurationUtils.getConfiguration(ServerConfiguration.global(), Scope.MASTER));
/** * Sets the master id and registers with the Alluxio leader master. */ private void setIdAndRegister() throws IOException { mMasterId.set(mMasterClient.getId(mMasterAddress)); mMasterClient.register(mMasterId.get(), ConfigurationUtils.getConfiguration(Scope.MASTER)); }
ConfigurationUtils.getConfiguration(Scope.MASTER));