File Coverage

blib/lib/JMX/Jmx4Perl/Product/Hadoop.pm
Criterion Covered Total %
statement 17 25 68.0
branch n/a
condition n/a
subroutine 7 12 58.3
pod 6 6 100.0
total 30 43 69.7


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