public class FineGrainedTaskManagerRegistration extends Object implements TaskManagerInfo
FineGrainedSlotManager.| 构造器和说明 |
|---|
FineGrainedTaskManagerRegistration(TaskExecutorConnection taskManagerConnection,
ResourceProfile totalResourceProfile,
ResourceProfile defaultSlotResourceProfile) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
freeSlot(AllocationID allocationId) |
Map<AllocationID,TaskManagerSlotInformation> |
getAllocatedSlots()
Get allocated slots information.
|
ResourceProfile |
getAvailableResource()
Get the available resource.
|
int |
getDefaultNumSlots()
Get the default number of slots.
|
ResourceProfile |
getDefaultSlotResourceProfile()
Get the default slot resource profile.
|
long |
getIdleSince()
Get the timestamp when the last time becoming idle.
|
InstanceID |
getInstanceId()
Get the instanceId of this task manager.
|
TaskExecutorConnection |
getTaskExecutorConnection()
Get the taskExecutorConnection.
|
ResourceProfile |
getTotalResource()
Get the total resource.
|
boolean |
isIdle()
Check whether this task manager is idle.
|
void |
notifyAllocation(AllocationID allocationId,
FineGrainedTaskManagerSlot taskManagerSlot) |
void |
notifyAllocationComplete(AllocationID allocationId) |
public FineGrainedTaskManagerRegistration(TaskExecutorConnection taskManagerConnection, ResourceProfile totalResourceProfile, ResourceProfile defaultSlotResourceProfile)
public TaskExecutorConnection getTaskExecutorConnection()
TaskManagerInfogetTaskExecutorConnection 在接口中 TaskManagerInfopublic InstanceID getInstanceId()
TaskManagerInfogetInstanceId 在接口中 TaskManagerInfopublic Map<AllocationID,TaskManagerSlotInformation> getAllocatedSlots()
TaskManagerInfogetAllocatedSlots 在接口中 TaskManagerInfopublic ResourceProfile getAvailableResource()
TaskManagerInfogetAvailableResource 在接口中 TaskManagerInfopublic ResourceProfile getDefaultSlotResourceProfile()
TaskManagerInfogetDefaultSlotResourceProfile 在接口中 TaskManagerInfopublic ResourceProfile getTotalResource()
TaskManagerInfogetTotalResource 在接口中 TaskManagerInfopublic int getDefaultNumSlots()
TaskManagerInfogetDefaultNumSlots 在接口中 TaskManagerInfopublic long getIdleSince()
TaskManagerInfogetIdleSince 在接口中 TaskManagerInfopublic boolean isIdle()
TaskManagerInfoisIdle 在接口中 TaskManagerInfopublic void freeSlot(AllocationID allocationId)
public void notifyAllocationComplete(AllocationID allocationId)
public void notifyAllocation(AllocationID allocationId, FineGrainedTaskManagerSlot taskManagerSlot)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.