Harvest::ClientServer - provide a multiprocess reaper | |
| |
DESCRIPTION | |
This module provides a client/server interface to the reaper, allowing multi-procces (and even multimachine) reaping. At present we combine both the client, and the server functionality into the one module. Eventually these should probably be split-off to form two modules, with the ``ClientServer'' module providing the glue. The core of this module is the ``process'' function, and is the only one intended for use at present. The client and server methods will eventually allow the creation of Controllers and Reapers which run on different machines, allowing for ``gathering farms''. At present, however, this behaviour is not tested, and not supported.
| |
METHODS | |
| |
| $process=new Harvest::ClientServer | |
Set up a client/server version of reap.
| |
| $process->server($config,$controller) | |
Start up a server with the given configuration, running the Harvest::Controller passed to it. The configuration structure should contain the following keys:
| |
| $process->client($config,$mimecfg,$filecfg,$enccfg,$count) | |
Set up a client, with the
# =item SocketType # # The type of the socket, at the moment only INET is supported
| |
| $process->process($config,$controller,$mimecfg,$filecfg,$enccfg) | |
Do a run using a set of clients and a server running on the local machine.
| |