- SEE ALSO
- COPYRIGHT AND LICENSE
Helios::TestService - Helios::Service subclass useful for testing
You can use Helios::TestService to test the functionality of your Helios collective:
Start a helios.pl daemon to service Helios::TestService jobs by issuing:
at a command prompt.
Use the helios_job_submit.pl program to submit a Helios::TestService job to the Helios collective:
helios_job_submit.pl Helios::TestService "<job><params><arg1>value1</arg1></params></job>"
Helios should run the test job. Helios::TestService will log a "Hello World" message, then any job arguments will be parsed and logged as entries in the Helios log. If you are running the service in debug mode, the service's config parameters and job arguments will be printed to the terminal as well.
The run() method prints a "Hello World!" message to the Helios log and then logs the job arguments.
This method prints the service's config params to the terminal. It's only called when Helios::TestService is run in debug mode.
This method prints the job arguments passed to the service to the terminal. It's only called when Helios::TestService is run in debug mode.
Andrew Johnson, <ajohnson at ittoolbox dotcom>
Copyright (C) 2012 by Andrew Johnson.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
This software comes with no warranty of any kind.