Net::Ostrich - Perl interface to Ostrich
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 <email@example.com>
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.