Documentation ¶
Index ¶
- type MockedRMProxy
- type RMProxy
- func (rmp *RMProxy) GetRMEventHandler() handler.EventHandler
- func (rmp *RMProxy) GetResourceManagerCallback(rmID string) api.ResourceManagerCallback
- func (rmp *RMProxy) HandleEvent(ev interface{})
- func (rmp *RMProxy) RegisterResourceManager(request *si.RegisterResourceManagerRequest, ...) (*si.RegisterResourceManagerResponse, error)
- func (rmp *RMProxy) StartService()
- func (rmp *RMProxy) Stop()
- func (rmp *RMProxy) UpdateAllocation(request *si.AllocationRequest) error
- func (rmp *RMProxy) UpdateApplication(request *si.ApplicationRequest) error
- func (rmp *RMProxy) UpdateConfiguration(request *si.UpdateConfigurationRequest) error
- func (rmp *RMProxy) UpdateNode(request *si.NodeRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockedRMProxy ¶ added in v1.1.0
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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.