XAS::Apps::Spooler::Process - Process spool files
use XAS::Apps::Spooler::Process; my $app = XAS::Apps::Spooler::Process->new( -throws => 'xas-spooler', ); exit $app->run();
This method will process a set of spoool directories and send the contents to a STOMP based message queue server.
The configuration file uses the familiar Windows .ini format. It has the following stanza.
[spooler: logs] directory = logs schedule = */1 * * * * queue = /queue/logs packet-type = xas-logs tasks = 6
Where the section header "spooler:" may have addtional qualifiers and repeated as many times as needed. The following properties may be used.
The directory to scan for files. If this is a relative directory it is referenced from $XAS_SPOOL.
The schedule to run the directory scan. It uses cron semantics. This defaults to "*/1 * * * *"
The queue to use on the message queue server.
The type of packet.
The number of internal processing tasks to use. Adding more tasks may speed up processing. This defaults to 1.
This method will process the config file.
This method will start the processing.
This method defines these additional command line options.
The host that the message queue server resides on.
The port that the message queue server is listening too.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2101-2015 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS::Spooler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS::Spooler
CPAN shell
perl -MCPAN -e shell install XAS::Spooler
For more information on module installation, please visit the detailed CPAN module installation guide.