controller

package
v0.0.0-...-d6e1657 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

This is the controller of a job. A job needs controller to setup etcd data layout, request cluster containers, etc. to setup framework to run.

func New

func New(name string, etcd *etcd.Client, numOfTasks uint64, pLinkTypes []string) *Controller

func (*Controller) DestroyEtcdLayout

func (c *Controller) DestroyEtcdLayout() error

func (*Controller) InitEtcdLayout

func (c *Controller) InitEtcdLayout() error

func (*Controller) Start

func (c *Controller) Start() error

A controller typical workflow: 1. controller sets up etcd layout before any task starts running. 2. Being ready, controller lets other tasks to run and reports any failure found.

func (*Controller) Stop

func (c *Controller) Stop() error

func (*Controller) WaitForJobDone

func (c *Controller) WaitForJobDone() error

Jump to

Keyboard shortcuts

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