Documentation
¶
Overview ¶
Package maxscore implements a scheduling picker that selects the endpoint(s) with the highest score calculated during the scoring phase.
For detailed behavioral intent and configuration, see the package README.
Index ¶
Constants ¶
View Source
const (
// MaxScorePickerType is the registered name of the max score picker plugin.
MaxScorePickerType = "max-score-picker"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MaxScorePicker ¶
type MaxScorePicker struct {
// contains filtered or unexported fields
}
MaxScorePicker picks endpoint(s) with the highest score calculated during the scoring phase.
func NewMaxScorePicker ¶
func NewMaxScorePicker(maxNumOfEndpoints int) *MaxScorePicker
NewMaxScorePicker initializes a new MaxScorePicker and returns its pointer.
func (*MaxScorePicker) Pick ¶
func (p *MaxScorePicker) Pick(ctx context.Context, scoredEndpoints []*fwksched.ScoredEndpoint) *fwksched.ProfileRunResult
Pick selects the endpoint(s) with the highest score calculated during the scoring phase.
func (*MaxScorePicker) TypedName ¶
func (p *MaxScorePicker) TypedName() fwkplugin.TypedName
TypedName returns the type and name tuple of this plugin instance.
func (*MaxScorePicker) WithName ¶
func (p *MaxScorePicker) WithName(name string) *MaxScorePicker
WithName sets the picker's name
Click to show internal directories.
Click to hide internal directories.