NAME

JMX::Jmx4Perl::Agent - Agent for JSON-HTTP Acess to a remote JMX Agent

SYNOPSIS

my $agent = new JMX::Jmx4Perl::Agent(url => "http://jeeserver/jjagent");
my $answer = $agent->fetch_attribute("java.lang:type=Memory","HeapMemoryUsage");
print Dumper($answer);

$VAR1 = {
   'value' => {
               'committed' => 18292736,
               'used' => 15348352,
               'max' => 532742144,
               'init' => 0
              },
   'request' => {
                  'attribute' => 'HeapMemoryUsage',
                  'name' => {
                             'keys' => {
                                        'type' => 'Memory'
                                       },
                             'domain' => 'java.lang',
                             'canonical' => 'java.lang:type=Memory'
                            }
                 },
};

DESCRIPTION

METHODS

$jjagent = JMX::Jmx4Perl::Agent->new(url => $url)

Creates a new local agent for a given url

url => <url to JEE server>

The url where the agent is deployed. This is a mandatory parameter. The url must include the context within the server, which is typically based on the name of the war archive. Example: http://localhost:8080/jjagent for a drop in deployment of the agent in a standard Tomcat's webapp directory.

timeout => <timeout>

Timeout in seconds after which a request should be stopped if it not suceeds within this time. This parameter is given through directly to the underlying LWP::UserAgent

user => <user>, password => <password>

Credentials to use for the HTTP request

proxy => { http => '<http_proxy>', https => '<https_proxy>', ... } =item proxy => <http_proxy>

Optional proxy to use

proxy_user => <user>, proxy_password => <password>

Credentials to use for accessing the proxy

LICENSE

This file is part of jmx4perl.

Jmx4perl is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

jmx4perl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with jmx4perl. If not, see <http://www.gnu.org/licenses/>.

roland@cpan.org

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 175:

You forgot a '=back' before '=head1'

You forgot a '=back' before '=head1'

Around line 192:

Unknown directive: =AUTHOR