Package org.apache.flink.api.common
Class SlotSharingGroup
- java.lang.Object
-
- org.apache.flink.api.common.SlotSharingGroup
-
@Experimental public class SlotSharingGroup extends Object
Describe the name and the different resource components of a slot sharing group.Two SlotSharingGroup classes currently exist in flink-core and flink-core-api, because the one in flink-core exposes components marked as internal, which we want to avoid in DataStream-V2 API. Once the V1 API is removed, we will remove the legacy SlotSharingGroup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlotSharingGroup.BuilderBuilder forSlotSharingGroup.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DoublegetCpuCores()Map<String,Double>getExternalResources()MemorySizegetManagedMemory()StringgetName()MemorySizegetTaskHeapMemory()MemorySizegetTaskOffHeapMemory()inthashCode()static SlotSharingGroup.BuildernewBuilder(String name)
-
-
-
Method Detail
-
getName
public String getName()
-
getManagedMemory
@Nullable public MemorySize getManagedMemory()
-
getTaskHeapMemory
@Nullable public MemorySize getTaskHeapMemory()
-
getTaskOffHeapMemory
@Nullable public MemorySize getTaskOffHeapMemory()
-
newBuilder
public static SlotSharingGroup.Builder newBuilder(String name)
-
-