rmproxy

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RMProxy

type RMProxy struct {
	EventHandlers handler.EventHandlers

	sync.RWMutex
	// contains filtered or unexported fields
}

Gateway to talk to ResourceManager (behind grpc/API of scheduler-interface)

func NewRMProxy

func NewRMProxy() *RMProxy

func (*RMProxy) GetRMEventHandler

func (rmp *RMProxy) GetRMEventHandler() handler.EventHandler

func (*RMProxy) GetResourceManagerCallback

func (rmp *RMProxy) GetResourceManagerCallback(rmID string) api.ResourceManagerCallback

func (*RMProxy) HandleEvent

func (rmp *RMProxy) HandleEvent(ev interface{})

func (*RMProxy) RegisterResourceManager

func (rmp *RMProxy) RegisterResourceManager(request *si.RegisterResourceManagerRequest, callback api.ResourceManagerCallback) (*si.RegisterResourceManagerResponse, error)

func (*RMProxy) StartService

func (rmp *RMProxy) StartService(handlers handler.EventHandlers)

func (*RMProxy) UpdateAllocation added in v0.12.0

func (rmp *RMProxy) UpdateAllocation(request *si.AllocationRequest) error

func (*RMProxy) UpdateApplication added in v0.12.0

func (rmp *RMProxy) UpdateApplication(request *si.ApplicationRequest) error

func (*RMProxy) UpdateConfiguration added in v0.12.0

func (rmp *RMProxy) UpdateConfiguration(rmID string) error

Triggers scheduler to reload configuration and apply the changes on-the-fly to the scheduler itself.

func (*RMProxy) UpdateNode added in v0.12.0

func (rmp *RMProxy) UpdateNode(request *si.NodeRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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