/** * Registers with the Tachyon master. This should be called before the continuous heartbeat thread * begins. The workerId will be set after this method is successful. * * @throws IOException when workerId cannot be found */ private void registerWithMaster() throws IOException { BlockStoreMeta storeMeta = mBlockDataManager.getStoreMeta(); try { mMasterClient.register(WorkerIdRegistry.getWorkerId(), storeMeta.getCapacityBytesOnTiers(), storeMeta.getUsedBytesOnTiers(), storeMeta.getBlockList()); } catch (IOException ioe) { LOG.error("Failed to register with master.", ioe); throw ioe; } }