Class SlotSharingGroup.Builder

    • Method Detail

      • setCpuCores

        public SlotSharingGroup.Builder setCpuCores​(double cpuCores)
        Set the CPU cores for this SlotSharingGroup.
      • setTaskHeapMemoryMB

        public SlotSharingGroup.Builder setTaskHeapMemoryMB​(int taskHeapMemoryMB)
        Set the task heap memory for this SlotSharingGroup in MB.
      • setTaskOffHeapMemoryMB

        public SlotSharingGroup.Builder setTaskOffHeapMemoryMB​(int taskOffHeapMemoryMB)
        Set the task off-heap memory for this SlotSharingGroup in MB.
      • setManagedMemoryMB

        public SlotSharingGroup.Builder setManagedMemoryMB​(int managedMemoryMB)
        Set the task managed memory for this SlotSharingGroup in MB.
      • setExternalResource

        public SlotSharingGroup.Builder setExternalResource​(String name,
                                                            double value)
        Add the given external resource. The old value with the same resource name will be replaced if present.