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( 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 are using the unix socket form of the RPC ( as opposed to http server ). This module will work with either, but really you're not getting much vs RPC::XML::Client for the http version; the http over Unix socket part is where this module comes in handy. See http://supervisord.org/api.html for the API docs.
METHODS
new
Constructor, provided by Moo.
rpc
Access to the RPC::XML::Client object.
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
-
optional - ex: /tmp/super.sock
- serverurl
-
optional - in supervisor format, ex: unix:///tmp.super.sock
One of the two is required.
LICENSE
This library is free software and may be distributed under the same terms as perl itself.
AUTHOR
Samuel Kaufman skaufman@cpan.org