blib/lib/JMX/Jmx4Perl/Product/Websphere.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 6 / 11 Podpod 100% 7 / 7 totaltotal 71.7% 28 / 39 CC 1 SCAR 3.7
CC
1
Cov
71%
name
2.0
version
2.0
autodetect_pattern
2.0
CRAP 1.5
« blib/lib/JMX/Jmx4Perl/Product/Jonas.pm ↑ Summary blib/lib/JMX/Jmx4Perl/Product/JBoss.pm »
1 #!/usr/bin/perl
2 package JMX::Jmx4Perl::Product::Websphere;
3  
4 2 ▶use JMX::Jmx4Perl::Product::BaseHandler;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use base "JMX::Jmx4Perl::Product::BaseHandler";
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 JMX::Jmx4Perl::Product::Websphere - Handler for IBM Websphere
13  
14 =head1 DESCRIPTION
15  
16 This is the product handler support for IBM Websphere Application Server 6 and
17 7 (L<http://www.ibm.com/>)
18  
19 =cut
20  
21 sub id {
22 2 ▶ return "websphere";
Subroutine id: called CC=1 SCAR=0.0
Pod documented
23 }
24  
25 sub name {
26 0 ▶ return "IBM Websphere Application Server";
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
27 }
28  
29  
30 sub version {
31 0 ▶ return shift->_version_or_vendor("version",qr/^Version\s+(\d.*)\s*$/m);
Subroutine version: not called CC=1 SCAR=6.9
Pod documented
32 }
33  
34 sub autodetect_pattern {
35 0 ▶ return (shift->original_version_sub,qr/IBM\s+WebSphere\s+Application\s+Server/i);
Subroutine autodetect_pattern: not called CC=1 SCAR=6.9
Pod documented
36 }
37  
38 sub order {
39 2 ▶ return 100;
Subroutine order: called CC=1 SCAR=0.0
Pod documented
40 }
41  
42 sub jsr77 {
43 0 ▶ return 1;
Subroutine jsr77: not called CC=1 SCAR=6.9
Pod documented
44 }
45  
46 sub init_aliases {
47 0 ▶ my $self = shift;
Subroutine init_aliases: not called CC=1 SCAR=6.9
Pod documented
48 return {
49 0 attributes => {
50 OS_CPU_TIME => 0, # Don't support these ones
51 OS_FILE_DESC_MAX => 0,
52 OS_FILE_DESC_OPEN => 0,
53 OS_MEMORY_PHYSICAL_FREE => 0,
54 OS_MEMORY_PHYSICAL_TOTAL => 0,
55 OS_MEMORY_SWAP_FREE => 0,
56 OS_MEMORY_SWAP_TOTAL => 0,
57 OS_MEMORY_VIRTUAL => 0
58 }
59 };
60 }
61  
62 =head1 LICENSE
63  
64 This file is part of jmx4perl.
65  
66 Jmx4perl is free software: you can redistribute it and/or modify
67 it under the terms of the GNU General Public License as published by
68 the Free Software Foundation, either version 2 of the License, or
69 (at your option) any later version.
70  
71 jmx4perl is distributed in the hope that it will be useful,
72 but WITHOUT ANY WARRANTY; without even the implied warranty of
73 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74 GNU General Public License for more details.
75  
76 You should have received a copy of the GNU General Public License
77 along with jmx4perl. If not, see <http://www.gnu.org/licenses/>.
78  
79 A commercial license is available as well. Please contact roland@cpan.org for
80 further details.
81  
82 =head1 AUTHOR
83  
84 roland@cpan.org
85  
86 =cut
87  
88 2 1;
« blib/lib/JMX/Jmx4Perl/Product/Jonas.pm ↑ Summary blib/lib/JMX/Jmx4Perl/Product/JBoss.pm »