elect

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package elect is used to find the target job and reserve resource for it

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct{}

Action defines the action

func New

func New() *Action

New returns the action instance

func (*Action) Execute

func (alloc *Action) Execute(ssn *framework.Session)

Execute selects the target job which is of the highest priority and waits for the longest time.

func (*Action) Initialize

func (alloc *Action) Initialize()

Initialize inits the action

func (*Action) Name

func (alloc *Action) Name() string

Name returns the action name

func (*Action) UnInitialize

func (alloc *Action) UnInitialize()

UnInitialize releases resource which are not useful.

Jump to

Keyboard shortcuts

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