NAME
Supervisord::Client - a perl client for Supervisord's XMLRPC.
SYNOPSIS
my $client = Supervisord::Client->new( serverurl => "unix:///tmp/socky.sock" );
#or
my $client = Supervisord::Client->new( serverurl => "http://foo.bar:25123" );
#or
my $client = Supervisord::Client->new( path_to_supervisor_config => "/etc/supervisor/supervisor.conf" );
warn $_->{description} for(@{ $client->getAllProcessInfo });
#or
warn $_->{description} for(@{ $client->send_rpc_request("supervisor.getAllProcessInfo") });
DESCRIPTION
This module is for people who are using supervisord ( http://supervisord.org/ ) to manage their daemons, and ran into problems with the http over Unix socket part.
See http://supervisord.org/api.html for the API docs of what the supervisord XMLRPC supports.
METHODS
new
Constructor, provided by Moo.
rpc
Access to the RPC::XML::Client object.
- ua
-
Access to the LWP::UserAgent object from the RPC::XML::Client
send_rpc_request( remote_method, @params )
AUTOLOAD
This module uses AUTOLOAD to proxy calls to send_rpc_request. See synopsis for examples.
CONSTRUCTOR PARAMETERS
path_to_supervisor_config or serverurl is required.
- path_to_supervisor_config
-
optional - ex: /tmp/super.sock
- serverurl
-
optional - in supervisor format, ex: unix:///tmp.super.sock | http://myserver.local:8080
LICENSE
This library is free software and may be distributed under the same terms as perl itself.
AUTHOR
Samuel Kaufman skaufman@cpan.org
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 130:
'=item' outside of any '=over'
- Around line 134:
You forgot a '=back' before '=head2'