public static class WorkerResourceSpec.Builder extends Object
WorkerResourceSpec
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WorkerResourceSpec |
build() |
WorkerResourceSpec.Builder |
setCpuCores(double cpuCores) |
WorkerResourceSpec.Builder |
setExtendedResource(ExternalResource extendedResource)
Add the given extended resource.
|
WorkerResourceSpec.Builder |
setExtendedResources(Collection<ExternalResource> extendedResources)
Add the given extended resources.
|
WorkerResourceSpec.Builder |
setManagedMemoryMB(int managedMemoryMB) |
WorkerResourceSpec.Builder |
setNetworkMemoryMB(int networkMemoryMB) |
WorkerResourceSpec.Builder |
setNumSlots(int numSlots) |
WorkerResourceSpec.Builder |
setTaskHeapMemoryMB(int taskHeapMemoryMB) |
WorkerResourceSpec.Builder |
setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB) |
public WorkerResourceSpec.Builder setCpuCores(double cpuCores)
public WorkerResourceSpec.Builder setTaskHeapMemoryMB(int taskHeapMemoryMB)
public WorkerResourceSpec.Builder setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
public WorkerResourceSpec.Builder setNetworkMemoryMB(int networkMemoryMB)
public WorkerResourceSpec.Builder setManagedMemoryMB(int managedMemoryMB)
public WorkerResourceSpec.Builder setNumSlots(int numSlots)
public WorkerResourceSpec.Builder setExtendedResource(ExternalResource extendedResource)
public WorkerResourceSpec.Builder setExtendedResources(Collection<ExternalResource> extendedResources)
public WorkerResourceSpec build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.