engine

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2014 License: Apache-2.0 Imports: 9 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) HandleEventJobScheduled added in v0.2.0

func (self *EventHandler) HandleEventJobScheduled(ev event.Event)

func (*EventHandler) HandleEventJobStopped added in v0.2.0

func (self *EventHandler) HandleEventJobStopped(ev event.Event)

func (*EventHandler) HandleEventMachineCreated added in v0.2.0

func (self *EventHandler) HandleEventMachineCreated(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