NAME

Distributed::Process::LocalWorker - a base class for Distributed::Process::Worker when running on the client side.

DESCRIPTION

This class implements the methods declared in D::P::BaseWorker as they should work on the client side, i.e., they actually do some really work (as opposed to sending a command on the network, as is the case in its server-side counterpart D::P::RemoteWorker.

Methods

time NAME, LIST

Runs the method NAME with LIST as arguments, while measuring its run time. Returns whatever the NAME method returns and appends to the result() a string of the form:

Time for running NAME: n.nnnnn seconds
reset_result

Empties the stack of results.

result LIST
result

When called with a non-empty LIST of arguments, pushes LIST onto the stack of results. These results are meant to be sent back when the server requests them.

When called without any arguments, returns the list of results.

SEE ALSO

Distributed::Process::BaseWorker, Distributed::Process::RemoteWorker, Distributed::Process::Worker

AUTHOR

Cédric Bouvier, <cbouvi@cpan.org>

BUGS

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.

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

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:

Around line 105:

Non-ASCII character seen before =encoding in 'Cédric'. Assuming UTF-8