dispatcher

package
v4.2.284+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnitTypeNode = "NODE"
	UnitTypePod  = "POD"
)

Variables

This section is empty.

Functions

func NewModelJobSender added in v0.9.1

func NewModelJobSender(datahubGrpcCn *grpc.ClientConn, modelMapper *ModelMapper) *modelJobSender

func NewPredictJobSender added in v0.9.1

func NewPredictJobSender(datahubGrpcCn *grpc.ClientConn) *predictJobSender

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher(datahubGrpcCn *grpc.ClientConn, granularities []string,
	predictUnits []string, modelMapper *ModelMapper) *Dispatcher

func (*Dispatcher) Start

func (dispatcher *Dispatcher) Start()

type ModelMapper added in v0.9.1

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

func NewModelMapper added in v0.9.1

func NewModelMapper(predictUnitTypes []string, granularities []string) *ModelMapper

func (*ModelMapper) AddModelInfo added in v0.9.1

func (mm *ModelMapper) AddModelInfo(predictUnitType string,
	granularity string, mInfo *modelInfo)

func (*ModelMapper) IsModelTimeout added in v0.9.1

func (mm *ModelMapper) IsModelTimeout(predictUnitType string,
	granularity string, mInfo *modelInfo) bool

func (*ModelMapper) IsModeling added in v0.9.1

func (mm *ModelMapper) IsModeling(predictUnitType string,
	granularity string, mInfo *modelInfo) bool

func (*ModelMapper) RemoveModelInfo added in v0.9.1

func (mm *ModelMapper) RemoveModelInfo(predictUnitType string,
	granularity string, modelId string)

Jump to

Keyboard shortcuts

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