concurrency

package
v0.8.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcurrencyLimiterOptions

func NewConcurrencyLimiterOptions(
	concurrencyLimiterProto *policylangv1.ConcurrencyLimiter,
	componentStackIndex int,
	policyReadAPI iface.Policy,
) (fx.Option, string, error)

NewConcurrencyLimiterOptions creates fx options for ConcurrencyLimiter and also returns the agent group name associated with it.

func NewLoadActuatorAndOptions added in v0.7.0

func NewLoadActuatorAndOptions(
	loadActuatorProto *policylangv1.LoadActuator,
	componentIndex int,
	policyReadAPI iface.Policy,
	agentGroup string,
) (runtime.Component, fx.Option, error)

NewLoadActuatorAndOptions creates load actuator and its fx options.

func NewSchedulerAndOptions

func NewSchedulerAndOptions(
	schedulerProto *policylangv1.Scheduler,
	componentIndex int,
	policyReadAPI iface.Policy,
	agentGroupName string,
) (runtime.Component, fx.Option, error)

NewSchedulerAndOptions creates scheduler and its fx options.

Types

type LoadActuator added in v0.7.0

type LoadActuator struct {
	// contains filtered or unexported fields
}

LoadActuator struct.

func (*LoadActuator) DynamicConfigUpdate added in v0.7.0

func (la *LoadActuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)

DynamicConfigUpdate finds the dynamic config and syncs the decision to agent.

func (*LoadActuator) Execute added in v0.7.0

func (la *LoadActuator) Execute(inPortReadings runtime.PortToValue, tickInfo runtime.TickInfo) (runtime.PortToValue, error)

Execute implements runtime.Component.Execute.

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler is part of the concurrency control component stack.

func (*Scheduler) DynamicConfigUpdate added in v0.4.0

func (s *Scheduler) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)

DynamicConfigUpdate is a no-op for this component.

func (*Scheduler) Execute

func (s *Scheduler) Execute(inPortReadings runtime.PortToValue, tickInfo runtime.TickInfo) (runtime.PortToValue, error)

Execute implements runtime.Component.Execute.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL