zookeeper

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(zooKeeperServerPoolAddresses []string) (*Client, error)

func (*Client) ClientRequestExist

func (obj *Client) ClientRequestExist(guid string) (bool, error)

func (*Client) DeletePendingRequest

func (obj *Client) DeletePendingRequest(guid string) error

func (*Client) GetAllPendingClientRequestGuid

func (obj *Client) GetAllPendingClientRequestGuid() ([]string, error)

func (*Client) GetClientRequestInformation

func (obj *Client) GetClientRequestInformation(guid string) (uint8, []byte, error)

func (*Client) GetCurrentLeaderPublicInternetAddress

func (obj *Client) GetCurrentLeaderPublicInternetAddress() (string, error)

func (*Client) GetProcessMembershipTable

func (obj *Client) GetProcessMembershipTable() (map[int]map[int]string, error)

func (*Client) Initialize

func (obj *Client) Initialize() error

func (*Client) KeepConnectionAlive

func (obj *Client) KeepConnectionAlive()

func (*Client) RegisterClientRequest

func (obj *Client) RegisterClientRequest(guid string, initialStatus uint8) error

func (*Client) RegisterClientRequestAsComplete

func (obj *Client) RegisterClientRequestAsComplete(guid string, outputGuid string) error

func (*Client) RegisterNewWorkerProcess

func (obj *Client) RegisterNewWorkerProcess(processId int, processGroupId int, processPublicInternetAddress string) error

func (*Client) UpdateClientRequestStatusBackup

func (obj *Client) UpdateClientRequestStatusBackup(guid string, status uint8, data []byte) error

func (*Client) WaitForClientRequestCompletion

func (obj *Client) WaitForClientRequestCompletion(guid string) (string, error)

func (*Client) WaitUntilLeader

func (obj *Client) WaitUntilLeader(myOwnPublicInternetAddress string) error

func (*Client) WaitUntilProcessMembershipChanges

func (obj *Client) WaitUntilProcessMembershipChanges() error

type ElectionResponse

type ElectionResponse struct {
	IsLeader bool
	NodeID   string
}

Jump to

Keyboard shortcuts

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