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