engine

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(reg *registry.Registry, events *event.EventBus, mach *machine.Machine) *Engine

func (*Engine) GetJobsScheduledToMachine

func (self *Engine) GetJobsScheduledToMachine(machBootId string) []job.Job

func (*Engine) LockMachine added in v0.1.2

func (self *Engine) LockMachine(machBootId string) *registry.TimedResourceMutex

Pass-through to Registry.LockMachine

func (*Engine) OfferJob

func (self *Engine) OfferJob(j job.Job) error

func (*Engine) RemoveJobState added in v0.1.1

func (self *Engine) RemoveJobState(jobName string)

func (*Engine) ResolveJobOffer

func (self *Engine) ResolveJobOffer(jobName string, machBootId string) error

func (*Engine) Run

func (self *Engine) Run()

func (*Engine) Stop

func (self *Engine) Stop()

func (*Engine) UnscheduleJob

func (self *Engine) UnscheduleJob(jobName string)

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)

Jump to

Keyboard shortcuts

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