code: public static void registerWorker(JobMasterClient jobMasterClient, WorkerNetAddress workerAddress)
        throws IOException, ConnectionFailedException {
      sWorkerId.set(jobMasterClient.registerWorker(workerAddress));
    }
docs: Registers with {@link JobMaster} to get a new job worker id.
  
  @param jobMasterClient the job master client to be used for RPC
  @param workerAddress current worker address
  @throws IOException when fails to get a new worker id
  @throws ConnectionFailedException if network connection failed