| 1 | #!/usr/bin/perl | ||
| 2 | package JMX::Jmx4Perl::Product::ActiveMQ; | ||
| 3 | |||
| 4 | 4 | ▶ | use JMX::Jmx4Perl::Product::BaseHandler; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | ▶ | use base "JMX::Jmx4Perl::Product::BaseHandler"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 4 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | ▶ | use Carp qw(croak); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | JMX::Jmx4Perl::Product::ActiveMQ - Handler for Jonas | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | This is the product handler support for ActiveMQ | ||
| 18 | (L<http://activemq.apache.org/>) which works with the JVM Agent provided for | ||
| 19 | Sun JDK 6 based applications | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | 4 | ▶ | sub id { |
|
Subroutine
id: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 4 | return "activemq"; | |
| 25 | } | ||
| 26 | |||
| 27 | 0 | ▶ | sub name { |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | 0 | return "ActiveMQ"; | |
| 29 | } | ||
| 30 | |||
| 31 | 0 | ▶ | sub vendor { |
|
Subroutine
vendor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 32 | 0 | return "Apache"; | |
| 33 | } | ||
| 34 | |||
| 35 | 0 | ▶ | sub version { |
|
Subroutine
version: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 36 | # No way to detect version until yet. | ||
| 37 | 0 | return ""; | |
| 38 | } | ||
| 39 | 4 | ▶ | sub order { |
|
Subroutine
order: called CC=1 SCAR=0.0
Pod
documented
| |||
| 40 | 4 | return 200; | |
| 41 | } | ||
| 42 | |||
| 43 | 0 | ▶ | sub autodetect_pattern { |
|
Subroutine
autodetect_pattern: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | 0 | ▶ | return sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 45 | 0 | my $self = shift; | |
| 46 | 0 | my $j4p = $self->{jmx4perl}; | |
| 47 | 0 | my $ret = $j4p->search("org.apache.activemq:*"); | |
| 48 | #print Dumper($ret); | ||
| 49 | 0 | return $ret; | |
| 50 | 0 | }; | |
| 51 | } | ||
| 52 | |||
| 53 | =head1 LICENSE | ||
| 54 | |||
| 55 | This file is part of jmx4perl. | ||
| 56 | |||
| 57 | Jmx4perl is free software: you can redistribute it and/or modify | ||
| 58 | it under the terms of the GNU General Public License as published by | ||
| 59 | the Free Software Foundation, either version 2 of the License, or | ||
| 60 | (at your option) any later version. | ||
| 61 | |||
| 62 | jmx4perl is distributed in the hope that it will be useful, | ||
| 63 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 64 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 65 | GNU General Public License for more details. | ||
| 66 | |||
| 67 | You should have received a copy of the GNU General Public License | ||
| 68 | along with jmx4perl. If not, see <http://www.gnu.org/licenses/>. | ||
| 69 | |||
| 70 | A commercial license is available as well. Please contact roland@cpan.org for | ||
| 71 | further details. | ||
| 72 | |||
| 73 | =head1 AUTHOR | ||
| 74 | |||
| 75 | roland@cpan.org | ||
| 76 | |||
| 77 | =cut | ||
| 78 | |||
| 79 | 4 | 1; | |