Example #1
0
 /**
  * Heartbeat with the TachyonMaster. Send the removed block list to the Master.
  *
  * @return The Command received from the Master
  * @throws BlockInfoException
  * @throws TException
  */
 public Command heartbeat() throws BlockInfoException, TException {
   ArrayList<Long> sendRemovedPartitionList = new ArrayList<Long>();
   while (mRemovedBlockList.size() > 0) {
     sendRemovedPartitionList.add(mRemovedBlockList.poll());
   }
   return mMasterClient.worker_heartbeat(
       mWorkerId, mWorkerSpaceCounter.getUsedBytes(), sendRemovedPartitionList);
 }