agent

package
v0.0.0-...-68dcc5d Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package agent is a database agent in remote servers.

Index

Constants

View Source
const (
	// JavaClassPathZookeeperr353beta is the Java class paths of Zookeeper r3.5.3-beta.
	// http://zookeeper.apache.org/doc/r3.5.3-beta/zookeeperAdmin.html#sc_zkMulitServerSetup
	JavaClassPathZookeeperr353beta = `` /* 156-byte string literal not displayed */
)

Java class paths for Zookeeper. '-cp' is for 'class search path of directories and zip/jar files'. See https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html for more. UPDATE FOR EACH ZOOKEEPER RELEASES! Search correct paths with 'find ./zookeeper/lib | sort'.

Variables

View Source
var Command = &cobra.Command{
	Use:   "agent",
	Short: "Database 'agent' in remote servers.",
	RunE:  commandFunc,
}

Command implements 'agent' command.

Functions

func NewServer

func NewServer() dbtesterpb.TransporterServer

NewServer returns a new server that implements gRPC interface.

Types

type ZookeeperConfig

type ZookeeperConfig struct {
	TickTime             int64
	DataDir              string
	ClientPort           int64
	InitLimit            int64
	SyncLimit            int64
	MaxClientConnections int64
	SnapCount            int64
	Peers                []ZookeeperPeer
}

ZookeeperConfig is zookeeper configuration. http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html

type ZookeeperPeer

type ZookeeperPeer struct {
	MyID int
	IP   string
}

ZookeeperPeer defines Zookeeper peer configuration.

Jump to

Keyboard shortcuts

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