Interface NodeAllocator.NodeLease
- Enclosing interface:
NodeAllocator
public static interface NodeAllocator.NodeLease
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidattachTaskId(TaskId taskId) com.google.common.util.concurrent.ListenableFuture<InternalNode> getNode()voidrelease()voidsetExecutionClass(TaskExecutionClass executionClass) Update execution class if it changes at runtime.voidsetMemoryRequirement(io.airlift.units.DataSize memoryRequirement) Update memory requirement for lease.
-
Method Details
-
getNode
com.google.common.util.concurrent.ListenableFuture<InternalNode> getNode() -
attachTaskId
-
setExecutionClass
Update execution class if it changes at runtime. It is only allowed to change execution class from speculative to non-speculative. -
setMemoryRequirement
void setMemoryRequirement(io.airlift.units.DataSize memoryRequirement) Update memory requirement for lease. There is no constraint when this method can be called - it can be done both before and after node lease is already fulfilled. -
release
void release()
-