public static class SlotSharingGroup.Builder extends Object
SlotSharingGroup
.Modifier and Type | Method and Description |
---|---|
SlotSharingGroup |
build()
Build the SlotSharingGroup.
|
SlotSharingGroup.Builder |
setCpuCores(double cpuCores)
Set the CPU cores for this SlotSharingGroup.
|
SlotSharingGroup.Builder |
setExternalResource(String name,
double value)
Add the given external resource.
|
SlotSharingGroup.Builder |
setManagedMemory(MemorySize managedMemory)
Set the task managed memory for this SlotSharingGroup.
|
SlotSharingGroup.Builder |
setManagedMemoryMB(int managedMemoryMB)
Set the task managed memory for this SlotSharingGroup in MB.
|
SlotSharingGroup.Builder |
setTaskHeapMemory(MemorySize taskHeapMemory)
Set the task heap memory for this SlotSharingGroup.
|
SlotSharingGroup.Builder |
setTaskHeapMemoryMB(int taskHeapMemoryMB)
Set the task heap memory for this SlotSharingGroup in MB.
|
SlotSharingGroup.Builder |
setTaskOffHeapMemory(MemorySize taskOffHeapMemory)
Set the task off-heap memory for this SlotSharingGroup.
|
SlotSharingGroup.Builder |
setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
Set the task off-heap memory for this SlotSharingGroup in MB.
|
public SlotSharingGroup.Builder setCpuCores(double cpuCores)
public SlotSharingGroup.Builder setTaskHeapMemory(MemorySize taskHeapMemory)
public SlotSharingGroup.Builder setTaskHeapMemoryMB(int taskHeapMemoryMB)
public SlotSharingGroup.Builder setTaskOffHeapMemory(MemorySize taskOffHeapMemory)
public SlotSharingGroup.Builder setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
public SlotSharingGroup.Builder setManagedMemory(MemorySize managedMemory)
public SlotSharingGroup.Builder setManagedMemoryMB(int managedMemoryMB)
public SlotSharingGroup.Builder setExternalResource(String name, double value)
public SlotSharingGroup build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.