masterpool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTaskMasterPool added in v0.0.2

func InitTaskMasterPool(masterPool *TaskMasterPool)

Types

type TaskMasterPool

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

func GetTaskMasterPool

func GetTaskMasterPool() *TaskMasterPool

GetTaskMasterPool must be executed after InitTaskMasterPool, otherwise it returns nil

func NewTaskMasterPool added in v0.0.2

func NewTaskMasterPool(tasks *tasks.TaskMap) *TaskMasterPool

func (*TaskMasterPool) Contains

func (p *TaskMasterPool) Contains(jobInstanceId int64) bool

func (*TaskMasterPool) Get

func (p *TaskMasterPool) Get(jobInstanceId int64) taskmaster.TaskMaster

func (*TaskMasterPool) GetInstanceIds

func (p *TaskMasterPool) GetInstanceIds(specifiedAppGroupId int64) []int64

func (*TaskMasterPool) Put

func (p *TaskMasterPool) Put(jobInstanceId int64, master taskmaster.TaskMaster)

func (*TaskMasterPool) Remove

func (p *TaskMasterPool) Remove(jobInstanceId int64)

func (*TaskMasterPool) Tasks added in v0.0.2

func (p *TaskMasterPool) Tasks() *tasks.TaskMap

Jump to

Keyboard shortcuts

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