public class TaskManagerRegistration extends Object
Constructor and Description |
---|
TaskManagerRegistration(TaskExecutorConnection taskManagerConnection,
Collection<SlotID> slots,
ResourceProfile totalResourceProfile,
ResourceProfile defaultSlotResourceProfile) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsSlot(SlotID slotId) |
void |
freeSlot() |
ResourceProfile |
getDefaultSlotResourceProfile() |
long |
getIdleSince() |
InstanceID |
getInstanceId() |
int |
getNumberFreeSlots() |
int |
getNumberRegisteredSlots() |
Iterable<SlotID> |
getSlots() |
TaskExecutorConnection |
getTaskManagerConnection() |
ResourceProfile |
getTotalResource() |
boolean |
isIdle() |
void |
markUsed() |
void |
occupySlot() |
public TaskManagerRegistration(TaskExecutorConnection taskManagerConnection, Collection<SlotID> slots, ResourceProfile totalResourceProfile, ResourceProfile defaultSlotResourceProfile)
public TaskExecutorConnection getTaskManagerConnection()
public InstanceID getInstanceId()
public int getNumberRegisteredSlots()
public int getNumberFreeSlots()
public ResourceProfile getDefaultSlotResourceProfile()
public ResourceProfile getTotalResource()
public void freeSlot()
public void occupySlot()
public long getIdleSince()
public boolean isIdle()
public void markUsed()
public boolean containsSlot(SlotID slotId)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.