public ResourceID getResourceID() { return taskManagerLocation.getResourceID(); }
public ResourceID getTaskManagerID() { return location.getResourceID(); }
public ResourceID getResourceID() { return taskManagerLocation.getResourceID(); }
public ResourceID getResourceID() { return taskManagerLocation.getResourceID(); }
public ResourceID getResourceID() { return taskManagerLocation.getResourceID(); }
/** * Gets the ID of the TaskManager that offers this slot. * * @return The ID of the TaskManager that offers this slot */ public ResourceID getTaskManagerID() { return slotContext.getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager on which this slot was allocated. * * <p>This is equivalent to {@link #getTaskManagerLocation()#getTaskManagerId()}. * * @return This slot's TaskManager's ID. */ public ResourceID getTaskManagerId() { return getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager on which this slot was allocated. * * <p>This is equivalent to {@link #getTaskManagerLocation()#getTaskManagerId()}. * * @return This slot's TaskManager's ID. */ public ResourceID getTaskManagerId() { return getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager on which this slot was allocated. * * <p>This is equivalent to {@link #getTaskManagerLocation()#getTaskManagerId()}. * * @return This slot's TaskManager's ID. */ public ResourceID getTaskManagerId() { return getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager that offers this slot. * * @return The ID of the TaskManager that offers this slot */ public ResourceID getTaskManagerID() { return slotContext.getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager that offers this slot. * * @return The ID of the TaskManager that offers this slot */ public ResourceID getTaskManagerID() { return allocatedSlot.getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager that offers this slot. * * @return The ID of the TaskManager that offers this slot */ public ResourceID getTaskManagerID() { return slotContext.getTaskManagerLocation().getResourceID(); }
/** * Gets the ID of the TaskManager on which this slot was allocated. * * <p>This is equivalent to {@link #getTaskManagerLocation()#getTaskManagerId()}. * * @return This slot's TaskManager's ID. */ public ResourceID getTaskManagerId() { return getTaskManagerLocation().getResourceID(); }
private void removeAllocatedSlot(final AllocatedSlot allocatedSlot) { Preconditions.checkNotNull(allocatedSlot); final ResourceID taskManagerId = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTM = allocatedSlotsByTaskManager.get(taskManagerId); slotsForTM.remove(allocatedSlot); if (slotsForTM.isEmpty()) { allocatedSlotsByTaskManager.remove(taskManagerId); } }
private void removeAllocatedSlot(final AllocatedSlot allocatedSlot) { Preconditions.checkNotNull(allocatedSlot); final ResourceID taskManagerId = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTM = allocatedSlotsByTaskManager.get(taskManagerId); slotsForTM.remove(allocatedSlot); if (slotsForTM.isEmpty()) { allocatedSlotsByTaskManager.remove(taskManagerId); } }
private void removeAllocatedSlot(final AllocatedSlot allocatedSlot) { Preconditions.checkNotNull(allocatedSlot); final ResourceID taskManagerId = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTM = allocatedSlotsByTaskManager.get(taskManagerId); slotsForTM.remove(allocatedSlot); if (slotsForTM.isEmpty()) { allocatedSlotsByTaskManager.remove(taskManagerId); } }
/** * Adds a new slot to this collection. * * @param allocatedSlot The allocated slot */ void add(SlotRequestId slotRequestId, AllocatedSlot allocatedSlot) { allocatedSlotsById.put(allocatedSlot.getAllocationId(), slotRequestId, allocatedSlot); final ResourceID resourceID = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTaskManager = allocatedSlotsByTaskManager.computeIfAbsent( resourceID, resourceId -> new HashSet<>(4)); slotsForTaskManager.add(allocatedSlot); }
/** * Adds a new slot to this collection. * * @param allocatedSlot The allocated slot */ void add(SlotRequestId slotRequestId, AllocatedSlot allocatedSlot) { allocatedSlotsById.put(allocatedSlot.getAllocationId(), slotRequestId, allocatedSlot); final ResourceID resourceID = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTaskManager = allocatedSlotsByTaskManager.computeIfAbsent( resourceID, resourceId -> new HashSet<>(4)); slotsForTaskManager.add(allocatedSlot); }
/** * Adds a new slot to this collection. * * @param allocatedSlot The allocated slot */ void add(SlotRequestId slotRequestId, AllocatedSlot allocatedSlot) { allocatedSlotsById.put(allocatedSlot.getAllocationId(), slotRequestId, allocatedSlot); final ResourceID resourceID = allocatedSlot.getTaskManagerLocation().getResourceID(); Set<AllocatedSlot> slotsForTaskManager = allocatedSlotsByTaskManager.computeIfAbsent( resourceID, resourceId -> new HashSet<>(4)); slotsForTaskManager.add(allocatedSlot); }
@Override public ResultPartitionLocation getResultPartitionLocation( TaskManagerLocation producerLocation, TaskManagerLocation consumerLocation, IntermediateResult intermediateResult) { if (consumerLocation.getResourceID().equals(producerLocation.getResourceID())) { // in the same taskmanager return ResultPartitionLocation.createLocal(); } else { // use the taskmanager ip and data port ConnectionID connectionId = new ConnectionID(producerLocation, intermediateResult.getConnectionIndex()); return ResultPartitionLocation.createRemote(connectionId); } } }