mppcoordmanager

package
v1.1.0-beta.0...-bd07e09 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstanceMPPCoordinatorManager = newMPPCoordinatorManger()

InstanceMPPCoordinatorManager is a local instance mpp coordinator manager

Functions

This section is empty.

Types

type CoordinatorUniqueID

type CoordinatorUniqueID struct {
	MPPQueryID kv.MPPQueryID
	GatherID   uint64
}

CoordinatorUniqueID identifies a unique coordinator

type MPPCoordinatorManager

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

MPPCoordinatorManager manages all mpp coordinator instances

func (*MPPCoordinatorManager) GetServerAddr

func (m *MPPCoordinatorManager) GetServerAddr() (serverOn bool, serverAddr string)

GetServerAddr returns grpcServer address, empty serverAddr if server not on

func (*MPPCoordinatorManager) InitServerAddr

func (m *MPPCoordinatorManager) InitServerAddr(serverOn bool, serverAddr string)

InitServerAddr init grpcServer address

func (*MPPCoordinatorManager) Register

func (m *MPPCoordinatorManager) Register(coordID CoordinatorUniqueID, mppCoord kv.MppCoordinator) error

Register is to register mpp coordinator

func (*MPPCoordinatorManager) ReportStatus

ReportStatus reports mpp task execution status to specific coordinator

func (*MPPCoordinatorManager) Run

func (m *MPPCoordinatorManager) Run()

Run use a loop to detect and remove out of time Coordinators

func (*MPPCoordinatorManager) Stop

func (m *MPPCoordinatorManager) Stop()

Stop stops background goroutine

func (*MPPCoordinatorManager) Unregister

func (m *MPPCoordinatorManager) Unregister(coordID CoordinatorUniqueID)

Unregister is to unregister mpp coordinator

Jump to

Keyboard shortcuts

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