POE::Component::Metabase::Relay::Server::Queue - Submission queue for the metabase relay
version 0.26
POE::Component::Metabase::Relay::Server::Queue is the submission queue for POE::Component::Metabase::Relay::Server.
It is based on POE::Component::EasyDBI database and uses POE::Component::Metabase::Client::Submit to send reports to a Metabase server.
spawn
Spawns a new component session and creates a SQLite database if it doesn't already exist.
Takes a number of mandatory parameters:
'dsn', a DBI DSN to use to store the submission queue; 'profile', a Metabase::User::Profile object; 'secret', a Metabase::User::Secret object; 'uri', the uri of metabase server to submit to;
and a number of optional parameters:
'username', a DSN username if required; 'password', a DSN password if required; 'db_opts', a hashref of DBD options that is passed to POE::Component::EasyDBI; 'debug', enable debugging information; 'multiple', set to true to enable the Queue to use multiple PoCo-Client-HTTPs, default 0; 'no_relay', set to true to disable report submissions to the Metabase, default 0; 'submissions', an int to control the number of parallel http clients ( used only if multiple == 1 ), default 10;
submit
Takes one parameter a Metabase::Fact to submit.
shutdown
Terminates the component.
Metabase
Metabase::User::Profile
Metabase::User::Secret
POE::Component::Metabase::Client::Submit
POE::Component::Metabase::Relay::Server
POE::Component::EasyDBI
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2014 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Component::Metabase::Relay::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Metabase::Relay::Server
CPAN shell
perl -MCPAN -e shell install POE::Component::Metabase::Relay::Server
For more information on module installation, please visit the detailed CPAN module installation guide.