Distributed::Process::BaseWorker - base class for all workers, both local and remote
None of these methods is actually implemented in this base class. They're all implemented either in Distributed::Process::LocalWorker, or in Distributed::Process::RemoteWorker.
Methods in Distributed::Process::LocalWorker will usually simply send a command to their RemoteWorker counterpart, asking it to perform some action on the server side.
Methods in Distributed::Process::RemoteWorker will perform the actions requested by the clients and possibly give a reply back.
Waits for all the connected clients to reach this synchronisation point. TOKEN is an identifier, used to identify which synchronisation point is being reached.
This must must be overloaded in subclasses to actually implement the task that is to be run remotely.
Just like synchro(), waits for all the connected clients to reach this point. But each client will be notified after a configurable amount of time. This allows the server to let the clients proceed within an interval from each other. See Distributed::Process::Master for details.
Runs the method NAME with the given LIST of arguments and reports the time it took by means of the result() method.
Flushes the results from memory. This should be called between two calls to run() so that the results from the second run are not appended to those of the first.
When called with an argument, adds the STRING to the queue of messages to send back to the server.
When called without arguments, returns the list of queued messages.
Distributed::Process::LocalWorker, Distributed::Process::MasterWorker, Distributed::Process::RemoteWorker, Distributed::Process::Worker.
Cédric Bouvier, <cbouvi@cpan.org>
<cbouvi@cpan.org>
Please report any bugs or feature requests to bug-distributed-process@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-distributed-process@rt.cpan.org
Copyright 2005 Cédric Bouvier, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Cédric'. Assuming CP1252
To install Distributed::Process, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Distributed::Process
CPAN shell
perl -MCPAN -e shell install Distributed::Process
For more information on module installation, please visit the detailed CPAN module installation guide.