node_manager

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollingIntervalInSec = 5
	ShutDownTimeout      = 630
)

Variables

View Source
var GetShutDownTimeout = func() int {
	return ShutDownTimeout
}

Functions

This section is empty.

Types

type NodeManager

type NodeManager interface {
	VerifyClusterIsUnhealthy() (bool, error)
	VerifyAllNodesAreReachable() error
	StopAllNodes() error
	GetSequenceNumbers() (map[string]int, error)
	BootstrapNode(baseURL string) error
	JoinNode(baseURL string) error
	FindUnhealthyNode() (string, error)
	StopNode(string) error
}

func New

func New(rootConfig *config.Config, clock clock.Clock) NodeManager

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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