engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClaimTTL = "4s"
)

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(machName string) []job.Job

func (*Engine) OfferJob

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

func (*Engine) ResolveJobOffer

func (self *Engine) ResolveJobOffer(jobName string, machName 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