zkcustomrule

package
v2.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZkCustomRule

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

ZkCustomRule is Zookeeper backed implementation of CustomRuleManager

func NewZkCustomRule

func NewZkCustomRule(server, path string) *ZkCustomRule

NewZkCustomRule Creates new ZkCustomRule structure

func (*ZkCustomRule) GetRules

func (zkcr *ZkCustomRule) GetRules() (qrs *rules.Rules, version int64, err error)

GetRules retrives cached rules.

func (*ZkCustomRule) Start

func (zkcr *ZkCustomRule) Start(qsc tabletserver.Controller) (err error)

Start registers Zookeeper watch, gets inital Rules and starts polling routine.

func (*ZkCustomRule) Stop

func (zkcr *ZkCustomRule) Stop()

Stop signals a termination to polling go routine and closes Zookeeper connection object.

Jump to

Keyboard shortcuts

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