membership

package
v0.0.0-...-6968735 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

type Coordinator interface {
	WaitUntilProcessMembershipChanges() error
	GetProcessMembershipTable() (map[int]map[int]string, error)
	RegisterNewWorkerProcess(processId int, processGroupId int, processPublicInternetAddress string) error
}

type Register

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

func New

func New(coordinator Coordinator) (*Register, error)

func (*Register) AddProcessCPUUtilization

func (obj *Register) AddProcessCPUUtilization(publicInternetAddress string, utilization int)

func (*Register) GetGroupAmount

func (obj *Register) GetGroupAmount() int

func (*Register) GetSpecifiedWorkerProcessPublicInternetAddressesForRPC

func (obj *Register) GetSpecifiedWorkerProcessPublicInternetAddressesForRPC(groupId int, processIds []int, rpcBasePort int) ([]string, error)

func (*Register) GetWorkerProcessIDs

func (obj *Register) GetWorkerProcessIDs(groupId int) []int

func (*Register) GetWorkerProcessPublicInternetAddressesForRPC

func (obj *Register) GetWorkerProcessPublicInternetAddressesForRPC(groupId int, rpcBasePort int) ([]string, error)

Jump to

Keyboard shortcuts

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