resourcemanager

package
v1.1.0-beta.0...-14a469a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstanceResourceManager = NewResourceManger()

InstanceResourceManager is a local instance resource manager

Functions

func RandomName

func RandomName() string

RandomName is to get a random name for register pool. It is just for test.

Types

type ResourceManager

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

ResourceManager is a resource manager

func NewResourceManger

func NewResourceManger() *ResourceManager

NewResourceManger is to create a new resource manager

func (*ResourceManager) Exec

Exec is to executor the command from scheduler.

func (*ResourceManager) Register

func (r *ResourceManager) Register(pool util.GoroutinePool, name string, component util.Component) error

Register is to register pool into resource manager

func (*ResourceManager) Reset

func (r *ResourceManager) Reset()

Reset is to Reset resource manager. it is just for test.

func (*ResourceManager) Start

func (r *ResourceManager) Start()

Start is to start resource manager

func (*ResourceManager) Stop

func (r *ResourceManager) Stop()

Stop is to stop resource manager

func (*ResourceManager) Unregister

func (r *ResourceManager) Unregister(name string)

Unregister is to unregister pool into resource manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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