1DBIx::Class::Storage::DUBsIe:r:RCDeoBpnIltxir:ci:abCtuletades:ds::RP:eeSprtlloircDaaogncetu:(m:3eD)nBtIa:t:iRoenplicated::Replicant(3)
2
3
4
6 DBIx::Class::Storage::DBI::Replicated::Replicant - A replicated DBI
7 Storage Role
8
10 This class is used internally by DBIx::Class::Storage::DBI::Replicated.
11
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
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 in DBIx::Class::Storage::DBI::Replicated and "lag_behind_master" in
35 DBIx::Class::Storage::DBI::Replicated. Since the implementation of
36 those functions database specific (and not all DBIC supported DBs
37 support replication) you should refer your database-specific storage
38 driver for more information.
39
40 master
41 Reference to the master Storage.
42
44 This class defines the following methods.
45
46 debugobj
47 Override the debugobj method to redirect this method call back to the
48 master.
49
51 <http://en.wikipedia.org/wiki/Replicant>,
52 DBIx::Class::Storage::DBI::Replicated
53
55 Check the list of additional DBIC resources.
56
58 This module is free software copyright by the DBIx::Class (DBIC)
59 authors. You can redistribute it and/or modify it under the same terms
60 as the DBIx::Class library.
61
62
63
64perl v5.28.0 DBIx::C2l0a1s7s-:1:2S-t0o8rage::DBI::Replicated::Replicant(3)