@Test public void addWorker() { mInfo.addWorker(1, "MEM"); assertTrue(mInfo.getWorkers().contains(1L)); }
public void addWorker(long workerId, String tierAlias) { mWorkerIdToAlias.put(workerId, tierAlias); }
MasterBlockInfo { public void addWorker(long workerId, String tierAlias) { mWorkerIdToAlias.put(workerId, tierAlias); } }
MasterBlockInfo { public void addWorker(long workerId, String tierAlias) { mWorkerIdToAlias.put(workerId, tierAlias); } MasterBlockInfo(long blockId, long length); }
MasterBlockInfo { public void addWorker(long workerId, String tierAlias) { mWorkerIdToAlias.put(workerId, tierAlias); } MasterBlockInfo(long blockId, long length); long getLength(); synchronized void updateLength(long length); long getBlockId(); void addWorker(long workerId, String tierAlias); void removeWorker(long workerId); Set<Long> getWorkers(); int getNumLocations(); List<MasterBlockLocation> getBlockLocations(); boolean isInTier(String targetTierAlias); @Override String toString(); }
MasterBlockInfo { public void addWorker(long workerId, String tierAlias) { mWorkerIdToAlias.put(workerId, tierAlias); } MasterBlockInfo(long blockId, long length); long getLength(); synchronized void updateLength(long length); long getBlockId(); void addWorker(long workerId, String tierAlias); void removeWorker(long workerId); Set<Long> getWorkers(); int getNumLocations(); List<MasterBlockLocation> getBlockLocations(); boolean isInTier(String targetTierAlias); @Override String toString();  }