Documentation ¶
Index ¶
- type Engine
- func (self *Engine) GetJobsScheduledToMachine(machBootId string) []job.Job
- func (self *Engine) LockMachine(machBootId string) *registry.TimedResourceMutex
- func (self *Engine) OfferJob(j job.Job) error
- func (self *Engine) RemoveJobState(jobName string)
- func (self *Engine) ResolveJobOffer(jobName string, machBootId string) error
- func (self *Engine) Run()
- func (self *Engine) Stop()
- func (self *Engine) UnscheduleJob(jobName string)
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) GetJobsScheduledToMachine ¶
func (*Engine) LockMachine ¶ added in v0.1.2
func (self *Engine) LockMachine(machBootId string) *registry.TimedResourceMutex
Pass-through to Registry.LockMachine
func (*Engine) RemoveJobState ¶ added in v0.1.1
func (*Engine) ResolveJobOffer ¶
func (*Engine) UnscheduleJob ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler(engine *Engine) *EventHandler
func (*EventHandler) HandleEventJobBidSubmitted ¶
func (self *EventHandler) HandleEventJobBidSubmitted(ev event.Event)
func (*EventHandler) HandleEventJobCreated ¶
func (self *EventHandler) HandleEventJobCreated(ev event.Event)
func (*EventHandler) HandleEventMachineRemoved ¶
func (self *EventHandler) HandleEventMachineRemoved(ev event.Event)
Click to show internal directories.
Click to hide internal directories.