NAME
POE::Component::Metabase::Relay::Server::Queue - Submission queue for the metabase relay
VERSION
version 0.38
DESCRIPTION
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.
CONSTRUCTOR
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; 'no_curl', set to true to disable automatic usage of POE::Component::Curl::Multi, default 0; 'submissions', an int to control the number of parallel http clients ( used only if multiple == 1 ), default 10;
INPUT EVENTS
submit
-
Takes one parameter a Metabase::Fact to submit.
shutdown
-
Terminates the component.
SEE ALSO
POE::Component::Metabase::Client::Submit
POE::Component::Metabase::Relay::Server
AUTHOR
Chris Williams <chris@bingosnet.co.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019 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.