Net::Ostrich - Perl interface to Ostrich
version 0.01
my $no = Net::Ostrich->new(host => '172.16.49.130', port => 2223); my $stats = $no->stats; my $pong = $no->ping;
Net::Ostrich is a perl interface to ostrich's administrative web service.
The LWP::UserAgent client used by Net::Ostrich. Provided in case you need to change any settings, such as the proxy.
The hostname to which we'll be connecting to talk to Ostrich
The path where Ostrich resides. Defaults to '/'. This will be appended after the port, so it's important that it begin and end with a /.
The port on which we'll be contacting Ostrich
Force a garbage collection cycle.
Ping the server.
Close any listening sockets, stop accepting new connections, and shutdown the server as soon as the last client connection is done.
Reload the server config file for any services that support it (most do not).
Immediately shutdown the server.
Fetch stats. Grabs them as JSON and returns the decoded JSON structure.
Fetch thread information. Grabs them as JSON and returns the decoded JSON structure.
Cory G Watson <gphat@cpan.org>
This software is copyright (c) 2011 by Infinity Interactive, Inc.
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 Net::Ostrich, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Ostrich
CPAN shell
perl -MCPAN -e shell install Net::Ostrich
For more information on module installation, please visit the detailed CPAN module installation guide.