public final class WorkerResourceSpec extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
WorkerResourceSpec.Builder
Builder for
WorkerResourceSpec . |
Modifier and Type | Field and Description |
---|---|
static WorkerResourceSpec |
ZERO |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static WorkerResourceSpec |
fromTaskExecutorProcessSpec(TaskExecutorProcessSpec taskExecutorProcessSpec) |
static WorkerResourceSpec |
fromTotalResourceProfile(ResourceProfile resourceProfile,
int numSlots) |
CPUResource |
getCpuCores() |
Map<String,ExternalResource> |
getExtendedResources() |
MemorySize |
getManagedMemSize() |
MemorySize |
getNetworkMemSize() |
int |
getNumSlots() |
MemorySize |
getTaskHeapSize() |
MemorySize |
getTaskOffHeapSize() |
MemorySize |
getTotalMemSize() |
int |
hashCode() |
String |
toString() |
public static final WorkerResourceSpec ZERO
public static WorkerResourceSpec fromTaskExecutorProcessSpec(TaskExecutorProcessSpec taskExecutorProcessSpec)
public static WorkerResourceSpec fromTotalResourceProfile(ResourceProfile resourceProfile, int numSlots)
public CPUResource getCpuCores()
public MemorySize getTaskHeapSize()
public MemorySize getTaskOffHeapSize()
public MemorySize getNetworkMemSize()
public MemorySize getManagedMemSize()
public MemorySize getTotalMemSize()
public int getNumSlots()
public Map<String,ExternalResource> getExtendedResources()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.