Interface SchedulerConfig.Builder

    • Method Detail

      • priorityClasses

        SchedulerConfig.Builder priorityClasses​(Collection<PriorityClass> priorityClasses)

        List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued.

        Parameters:
        priorityClasses - List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • priorityClasses

        SchedulerConfig.Builder priorityClasses​(PriorityClass... priorityClasses)

        List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued.

        Parameters:
        priorityClasses - List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • priorityClasses

        SchedulerConfig.Builder priorityClasses​(Consumer<PriorityClass.Builder>... priorityClasses)

        List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued.

        This is a convenience method that creates an instance of the PriorityClass.Builder avoiding the need to create one manually via PriorityClass.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #priorityClasses(List).

        Parameters:
        priorityClasses - a consumer that will call methods on PriorityClass.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #priorityClasses(java.util.Collection)
      • fairShare

        SchedulerConfig.Builder fairShare​(String fairShare)

        When enabled, entities borrow idle compute based on their assigned FairShareWeight.

        When disabled, entities borrow idle compute based on a first-come first-serve basis.

        Default is Enabled.

        Parameters:
        fairShare - When enabled, entities borrow idle compute based on their assigned FairShareWeight.

        When disabled, entities borrow idle compute based on a first-come first-serve basis.

        Default is Enabled.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FairShare, FairShare
      • fairShare

        SchedulerConfig.Builder fairShare​(FairShare fairShare)

        When enabled, entities borrow idle compute based on their assigned FairShareWeight.

        When disabled, entities borrow idle compute based on a first-come first-serve basis.

        Default is Enabled.

        Parameters:
        fairShare - When enabled, entities borrow idle compute based on their assigned FairShareWeight.

        When disabled, entities borrow idle compute based on a first-come first-serve basis.

        Default is Enabled.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FairShare, FairShare