NAME
Net::Tomcat::Connector::Statistics - Utility class for representing Tomcat Connector statistics objects.
VERSION
Version 0.01
SYNOPSIS
Net::Tomcat::Connector::Statistics is a utility class for representing Tomcat Connector statistics.
use Net::Tomcat;
# Create a new Net::Tomcat object
my $tc = Net::Tomcat->new(
username => 'admin',
password => 'password',
hostname => 'web-server-01.company.com'
)
or die "Unable to create new Net::Tomcat object: $!\n";
# Retrieve a Net::Tomcat::Connector::Statistics object by explicit
# connector name
my $stats = $tc->connector('http-8080')->stats;
# Print the bytes received and sent
printf( "Bytes received: %-20d\nBytes sent: %-20d\n",
$stats->bytes_received,
$stats->bytes_sent );
# Retrieve a statistics value explicitly
print "Request count: "
. $tc->connector('http-8080')
->stats
->request_count
. "\n";
METHODS
new
Constructor - creates a new Net::Tomcat::Connector::Statistics object. Note that you should not normally need to call the constructor method directly as a Net::Tomcat::Connector::Statistics object will be created for you on invoking methods in parent classes.
max_threads
Returns the number of maximum threads available for the connector.
current_thread_count
Returns the number of threads currently in use by the connector.
current_thread_busy
Returns the number of threads currently marked busy by the connector.
max_processing_time
Returns the maximum request processing time for the connector.
processing_time
Returns the total request processing time for the connector.
request_count
Returns the total number of requests processed for the connector.
error_count
Returns the total error count for the connector.
bytes_received
Returns the total number of bytes received by the connector.
bytes_sent
Returns the total number of bytes sent by the connector.
AUTHOR
Luke Poskitt, <ltp at cpan.org>
BUGS
Please report any bugs or feature requests to bug-net-tomcat-connector-statistics at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Tomcat-Connector-Statistics. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Tomcat::Connector::Statistics
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Tomcat-Connector-Statistics
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
http://cpanratings.perl.org/d/Net-Tomcat-Connector-Statistics
Search CPAN
http://search.cpan.org/dist/Net-Tomcat-Connector-Statistics/
LICENSE AND COPYRIGHT
Copyright 2015 Luke Poskitt.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.