public static class ResourceProfile.Builder extends Object
ResourceProfile
.Modifier and Type | Method and Description |
---|---|
ResourceProfile.Builder |
addExtendedResource(String name,
Resource extendedResource) |
ResourceProfile.Builder |
addExtendedResources(Map<String,Resource> extendedResources) |
ResourceProfile |
build() |
ResourceProfile.Builder |
setCpuCores(double cpuCores) |
ResourceProfile.Builder |
setCpuCores(Resource cpuCores) |
ResourceProfile.Builder |
setManagedMemory(MemorySize managedMemory) |
ResourceProfile.Builder |
setManagedMemoryMB(int managedMemoryMB) |
ResourceProfile.Builder |
setNetworkMemory(MemorySize networkMemory) |
ResourceProfile.Builder |
setNetworkMemoryMB(int networkMemoryMB) |
ResourceProfile.Builder |
setTaskHeapMemory(MemorySize taskHeapMemory) |
ResourceProfile.Builder |
setTaskHeapMemoryMB(int taskHeapMemoryMB) |
ResourceProfile.Builder |
setTaskOffHeapMemory(MemorySize taskOffHeapMemory) |
ResourceProfile.Builder |
setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB) |
public ResourceProfile.Builder setCpuCores(Resource cpuCores)
public ResourceProfile.Builder setCpuCores(double cpuCores)
public ResourceProfile.Builder setTaskHeapMemory(MemorySize taskHeapMemory)
public ResourceProfile.Builder setTaskHeapMemoryMB(int taskHeapMemoryMB)
public ResourceProfile.Builder setTaskOffHeapMemory(MemorySize taskOffHeapMemory)
public ResourceProfile.Builder setTaskOffHeapMemoryMB(int taskOffHeapMemoryMB)
public ResourceProfile.Builder setManagedMemory(MemorySize managedMemory)
public ResourceProfile.Builder setManagedMemoryMB(int managedMemoryMB)
public ResourceProfile.Builder setNetworkMemory(MemorySize networkMemory)
public ResourceProfile.Builder setNetworkMemoryMB(int networkMemoryMB)
public ResourceProfile.Builder addExtendedResource(String name, Resource extendedResource)
public ResourceProfile.Builder addExtendedResources(Map<String,Resource> extendedResources)
public ResourceProfile build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.