rmproxy

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 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 MockedRMProxy added in v1.1.0

type MockedRMProxy struct {
	locking.RWMutex
	// contains filtered or unexported fields
}

MockedRMProxy Implements RMProxy Mock Event Handler for testing

func NewMockedRMProxy added in v1.1.0

func NewMockedRMProxy() *MockedRMProxy

func (*MockedRMProxy) GetEvents added in v1.1.0

func (rmp *MockedRMProxy) GetEvents() []interface{}

GetEvents return the list of events processed by the handler and reset

func (*MockedRMProxy) HandleEvent added in v1.1.0

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

HandleEvent implements event handling for a limited set of events for testing

func (*MockedRMProxy) IsHandled added in v1.1.0

func (rmp *MockedRMProxy) IsHandled() bool

IsHandled return the last action performed by the handler and reset

type RMProxy

type RMProxy struct {
	locking.RWMutex
	// contains filtered or unexported fields
}

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

func NewRMProxy

func NewRMProxy(schedulerEventHandler handler.EventHandler) *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()

func (*RMProxy) Stop added in v1.5.0

func (rmp *RMProxy) Stop()

func (*RMProxy) UpdateAllocation

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

func (*RMProxy) UpdateApplication

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

func (*RMProxy) UpdateConfiguration

func (rmp *RMProxy) UpdateConfiguration(request *si.UpdateConfigurationRequest) error

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

func (*RMProxy) UpdateNode

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