Plack::App::Gearman::Status - Plack application to display the status of Gearman job servers
version 0.001001
In a .psgi file:
.psgi
use Plack::App::Gearman::Status; my $app = Plack::App::Gearman::Status->new({ job_servers => ['127.0.0.1:4730'], });
As one-liner on the command line:
plackup -MPlack::App::Gearman::Status \ -e 'Plack::App::Gearman::Status->new({ job_servers => ["127.0.0.1:4730"] })->to_app'
Plack::App::Gearman::Status displays the status of the configured Gearman job servers by fetching it using Net::Telnet::Gearman and turning it into a simple HTML page. This page contains information about the available workers and the status of the registered functions.
Constructor, creates new Plack::App::Gearman::Status instance.
This method expects its parameters as a hash reference.
Array reference with the addresses of the job servers the application should connect to.
Parses a job server address of the form hostname:port with optional port. If no port is given, it defaults to 4730.
hostname:port
port
4730
This method expects positional parameters.
The address to parse.
A list with host and port.
Connects to the given job server and returns the Net::Telnet::Gearman object.
Address of the job server to connect to.
The Net::Telnet::Gearman instance on success, undef otherwise.
undef
Fetch status information from configured Gearman job servers.
An array reference with hash references containing status information.
Specialized call method which retrieves the job server status information and transforms it to HTML.
A PSGI response.
Plack and Plack::Component.
Net::Telnet::Gearman which is used to access a Gearman job server.
gearman-stat.psgi (https://github.com/tokuhirom/gearman-stat.psgi) by TOKUHIROM which inspired this application.
gearman-stat.psgi
Manfred Stock <mstock@cpan.org>
This software is copyright (c) 2012 by Manfred Stock.
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 Plack::App::Gearman::Status, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Gearman::Status
CPAN shell
perl -MCPAN -e shell install Plack::App::Gearman::Status
For more information on module installation, please visit the detailed CPAN module installation guide.