NAME

Helios::TestService - Helios::Service subclass useful for testing

DESCRIPTION

You can use Helios::TestService to test the functionality of your Helios collective:

  1. Start a helios.pl daemon to service Helios::TestService jobs by issuing:

    helios.pl Helios::TestService

    at a command prompt.

  2. 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>"
  3. 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.

METHODS

run()

The run() method prints a "Hello World!" message to the Helios log and then logs the job arguments.

printConfigParams()

This method prints the service's config params to the terminal. It's only called when Helios::TestService is run in debug mode.

printJobArgs()

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.

SEE ALSO

Helios::Service

AUTHOR

Andrew Johnson, <ajohnson at ittoolbox dotcom>

COPYRIGHT AND LICENSE

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.

WARRANTY

This software comes with no warranty of any kind.