1DBIx::Class::Storage::DUBsIe:r:RCDeoBpnIltxir:ci:abCtuletades:ds::RP:eeSprtlloircDaaogncetu:(m:3eD)nBtIa:t:iRoenplicated::Replicant(3)
2
3
4

NAME

6       DBIx::Class::Storage::DBI::Replicated::Replicant - A replicated DBI
7       Storage Role
8

SYNOPSIS

10       This class is used internally by DBIx::Class::Storage::DBI::Replicated.
11

DESCRIPTION

13       Replicants are DBI Storages that follow a master DBI Storage.
14       Typically this is accomplished via an external replication system.
15       Please see the documents for DBIx::Class::Storage::DBI::Replicated for
16       more details.
17
18       This class exists to define methods of a DBI Storage that only make
19       sense when it's a classic 'slave' in a pool of slave databases which
20       replicate from a given master database.
21

ATTRIBUTES

23       This class defines the following attributes.
24
25   active
26       This is a boolean which allows you to programmatically activate or
27       deactivate a replicant from the pool.  This way you can do stuff like
28       disallow a replicant when it gets too far behind the master, if it
29       stops replicating, etc.
30
31       This attribute DOES NOT reflect a replicant's internal status, i.e. if
32       it is properly replicating from a master and has not fallen too many
33       seconds behind a reliability threshold.  For that, use "is_replicating"
34       and "lag_behind_master".  Since the implementation of those functions
35       database specific (and not all DBIC supported DBs support replication)
36       you should refer your database-specific storage driver for more
37       information.
38
39   master
40       Reference to the master Storage.
41

METHODS

43       This class defines the following methods.
44
45   debugobj
46       Override the debugobj method to redirect this method call back to the
47       master.
48

ALSO SEE

50       <http://en.wikipedia.org/wiki/Replicant>,
51       DBIx::Class::Storage::DBI::Replicated
52

AUTHOR

54       John Napiorkowski <john.napiorkowski@takkle.com>
55

LICENSE

57       You may distribute this code under the same terms as Perl itself.
58
59
60
61perl v5.12.0               DBIx::C2l0a1s0s-:0:5S-t1o2rage::DBI::Replicated::Replicant(3)
Impressum