actor

package
v0.0.0-...-d4b8c80 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package actor contains the code for all the actions executed remotely on a tablet. These actions can be executed as: - RPCs: called directly from vttablet - ActionNodes: executed from within vtaction

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTabletMysqlPort

func CheckTabletMysqlPort(ts topo.Server, mysqlDaemon mysqlctl.MysqlDaemon, tablet *topo.TabletInfo) *topo.TabletInfo

ChecktabletMysqlPort will check the mysql port for the tablet is good, and if not will try to update it

func SetBlacklistedTables

func SetBlacklistedTables(ts topo.Server, tabletAlias topo.TabletAlias, tables []string) error

Make this external, since these transitions need to be forced from time to time.

func SlaveWasPromoted

func SlaveWasPromoted(ts topo.Server, tabletAlias topo.TabletAlias) error

func SlaveWasRestarted

func SlaveWasRestarted(ts topo.Server, tabletAlias topo.TabletAlias, swrd *actionnode.SlaveWasRestartedArgs) error

func StoreActionResponse

func StoreActionResponse(ts topo.Server, actionNode *actionnode.ActionNode, actionPath string, actionErr error) error

Write the result of an action into topology server

Types

type TabletActor

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

TabletActor is the main object for this package.

func NewTabletActor

func NewTabletActor(mysqld *mysqlctl.Mysqld, mysqlDaemon mysqlctl.MysqlDaemon, topoServer topo.Server, tabletAlias topo.TabletAlias) *TabletActor

func (*TabletActor) HandleAction

func (ta *TabletActor) HandleAction(actionPath, action, actionGuid string, forceRerun bool) error

This function should be protected from unforseen panics, as dispatchAction will catch everything. The rest of the code in this function should not panic.

type TabletActorError

type TabletActorError string

func (TabletActorError) Error

func (e TabletActorError) Error() string

Jump to

Keyboard shortcuts

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