- COPYRIGHT AND LICENSE
Algorithm::Paxos::Role::Learner - A Learner role for the Paxos algorithm
package MyApp::PaxosBasic; use Moose; with qw(Algorithm::Paxos::Role::Learner); 1; __END__
Learners act as the replication factor for the protocol. Once a Client request has been agreed on by the Acceptors, the Learner may take action (i.e.: execute the request and send a response to the client). To improve availability of processing, additional Learners can be added.
This is the main interface between Acceptors and Leaners. When a value is choosen by the cluster,
learn is passed the id and value and is recorded in stable storage. The default implementation stores everything in an in-memory HashRef.
Returns a list of proposal ids.
Returns the number of proposals to date.
Returns the value of the proposal with the greatest id.
Returns the value stored for
Chris Prather <email@example.com>
This software is copyright (c) 2012 by Chris Prather.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 82:
Unknown directive: =meethod