XAS::Spooler::Connector - Perl extension for the XAS environment
use XAS::Spooler::Connector; my $connection = XAS::Spooler::Connector->spawn( RemoteAddress => $hostname, RemotePort => $port, RetryReconnect => TRUE, EnableKeepAlive => TRUE, Hostname => $xas->host, Alias => 'connector', Processor => $processor, Logger => 'logger', Queue => $ddc_queue );
This module use to connect to a message queue server for spoolers. It provides the necessary events and methods so the Factory can do its job.
This method creates the initial session, setups the scheduling for gather_data() and initializes JSON processing. It takes the following configuration items:
A pointer to the ProcessFactory object.
The name of the queue to send messages to on the message queue server.
The name of the host that this is running on.
This event signal that the connection had been dropped, we are just stopping the collection of data. This is done by notifing the ProcessFactory that data collection should stop.
This event notifies the ProcessFactory that we are shutting down.
This event provides an interface to the ProcesFactory to send data to the message queue server.
This event will format the data to be sent to the message queue server.
XAS
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (C) 2012 by Kevin L. Esteb
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.8 or, at your option, any later version of Perl 5 you may have available.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.