public static class ResourceSpec.Builder extends Object
ResourceSpec
.Modifier and Type | Method and Description |
---|---|
ResourceSpec |
build() |
ResourceSpec.Builder |
setCpuCores(double cpuCores) |
ResourceSpec.Builder |
setExtendedResource(ExternalResource extendedResource)
Add the given extended resource.
|
ResourceSpec.Builder |
setExtendedResources(Collection<ExternalResource> extendedResources)
Add the given extended resources.
|
ResourceSpec.Builder |
setManagedMemory(MemorySize managedMemory) |
ResourceSpec.Builder |
setManagedMemoryMB(int managedMemoryMB) |
ResourceSpec.Builder |
setTaskHeapMemory(MemorySize taskHeapMemory) |
ResourceSpec.Builder |
setTaskHeapMemoryMB(int taskHeapMemoryMB) |
ResourceSpec.Builder |
setTaskOffHeapMemory(MemorySize taskOffHeapMemory) |
ResourceSpec.Builder |
setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB) |
public ResourceSpec.Builder setCpuCores(double cpuCores)
public ResourceSpec.Builder setTaskHeapMemory(MemorySize taskHeapMemory)
public ResourceSpec.Builder setTaskHeapMemoryMB(int taskHeapMemoryMB)
public ResourceSpec.Builder setTaskOffHeapMemory(MemorySize taskOffHeapMemory)
public ResourceSpec.Builder setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
public ResourceSpec.Builder setManagedMemory(MemorySize managedMemory)
public ResourceSpec.Builder setManagedMemoryMB(int managedMemoryMB)
public ResourceSpec.Builder setExtendedResource(ExternalResource extendedResource)
public ResourceSpec.Builder setExtendedResources(Collection<ExternalResource> extendedResources)
public ResourceSpec build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.