ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP.pm
(Generate patch)

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.69 by root, Sun Aug 30 18:51:49 2009 UTC vs.
Revision 1.71 by root, Sun Aug 30 19:52:56 2009 UTC

38 mon $port, $otherport # kill otherport on abnormal death 38 mon $port, $otherport # kill otherport on abnormal death
39 mon $port, $otherport, @msg # send message on death 39 mon $port, $otherport, @msg # send message on death
40 40
41=head1 CURRENT STATUS 41=head1 CURRENT STATUS
42 42
43 bin/aemp - stable.
43 AnyEvent::MP - stable API, should work 44 AnyEvent::MP - stable API, should work.
44 AnyEvent::MP::Intro - outdated 45 AnyEvent::MP::Intro - uptodate, but incomplete.
45 AnyEvent::MP::Kernel - mostly stable 46 AnyEvent::MP::Kernel - mostly stable.
46 AnyEvent::MP::Global - mostly stable 47 AnyEvent::MP::Global - stable API, protocol not yet final.
47 AnyEvent::MP::Node - mostly stable, but internal anyways
48 AnyEvent::MP::Transport - mostly stable, but internal anyways
49 48
50 stay tuned. 49 stay tuned.
51 50
52=head1 DESCRIPTION 51=head1 DESCRIPTION
53 52
178the current nodename will be used instead (i.e. F<uname -n>). 177the current nodename will be used instead (i.e. F<uname -n>).
179 178
180The function first looks up the profile in the aemp configuration (see the 179The function first looks up the profile in the aemp configuration (see the
181L<aemp> commandline utility). the profile is calculated as follows: 180L<aemp> commandline utility). the profile is calculated as follows:
182 181
183First, all remaining key => value pairs will be used. Then they will be 182First, all remaining key => value pairs (all of which are conviniently
183undocumented at the moment) will be used. Then they will be overwritten by
184overwritten by any values specified in the global default configuration 184any values specified in the global default configuration (see the F<aemp>
185(see the F<aemp> utility), then the chain of profiles selected, if 185utility), then the chain of profiles selected, if any. That means that
186any. That means that the values specified in the profile have highest 186the values specified in the profile have highest priority and the values
187priority and the values specified via C<initialise_node> have lowest 187specified via C<initialise_node> have lowest priority.
188priority.
189 188
190If the profile specifies a node ID, then this will become the node ID of 189If the profile specifies a node ID, then this will become the node ID of
191this process. If not, then the profile name will be used as node ID. The 190this process. If not, then the profile name will be used as node ID. The
192special node ID of C<anon/> will be replaced by a random node ID. 191special node ID of C<anon/> will be replaced by a random node ID.
193 192
195aemp protocol listeners on all binds specified (it is possible and valid 194aemp protocol listeners on all binds specified (it is possible and valid
196to have no binds, meaning that the node cannot be contacted form the 195to have no binds, meaning that the node cannot be contacted form the
197outside. This means the node cannot talk to other nodes that also have no 196outside. This means the node cannot talk to other nodes that also have no
198binds, but it can still talk to all "normal" nodes). 197binds, but it can still talk to all "normal" nodes).
199 198
200If the profile does not specify a binds list, then the node ID will be 199If the profile does not specify a binds list, then a default of C<*> is
201treated as if it were of the form C<host:port>, which will be resolved and 200used.
202used as binds list.
203 201
204Lastly, the seeds list from the profile is passed to the 202Lastly, the seeds list from the profile is passed to the
205L<AnyEvent::MP::Global> module, which will then use it to keep 203L<AnyEvent::MP::Global> module, which will then use it to keep
206connectivity with at least on of those seed nodes at any point in time. 204connectivity with at least on of those seed nodes at any point in time.
207 205

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines