line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
package JMX::Jmx4Perl::Product::JBoss; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
13
|
use JMX::Jmx4Perl::Product::BaseHandler; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
66
|
|
5
|
3
|
|
|
3
|
|
13
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
57
|
|
6
|
3
|
|
|
3
|
|
12
|
use base "JMX::Jmx4Perl::Product::BaseHandler"; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
181
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
13
|
use Carp qw(croak); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
594
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
JMX::Jmx4Perl::Product::JBoss - Handler for JBoss |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
This is the product handler support JBoss 4.x and JBoss 5.x (L) |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub id { |
21
|
3
|
|
|
3
|
1
|
21
|
return "jboss"; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub name { |
25
|
0
|
|
|
0
|
1
|
0
|
return "JBoss AS"; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub order { |
29
|
3
|
|
|
3
|
1
|
14
|
return -2; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub jsr77 { |
33
|
0
|
|
|
0
|
1
|
|
return 1; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub version { |
37
|
0
|
|
|
0
|
1
|
|
return shift->_version_or_vendor("version",qr/^(.*?)\s+/); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub autodetect_pattern { |
41
|
0
|
|
|
0
|
1
|
|
return ("vendor",qr/JBoss/i); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub init_aliases { |
45
|
|
|
|
|
|
|
return |
46
|
|
|
|
|
|
|
{ |
47
|
0
|
|
|
0
|
1
|
|
attributes => |
48
|
|
|
|
|
|
|
{ |
49
|
|
|
|
|
|
|
SERVER_ADDRESS => [ "jboss.system:type=ServerInfo", "HostAddress"], |
50
|
|
|
|
|
|
|
SERVER_HOSTNAME => [ "jboss.system:type=ServerInfo", "HostName"], |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
operations => |
53
|
|
|
|
|
|
|
{ |
54
|
|
|
|
|
|
|
THREAD_DUMP => [ "jboss.system:type=ServerInfo", "listThreadDump"] |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
# Alias => [ "mbean", "attribute", "path" ] |
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This file is part of jmx4perl. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Jmx4perl is free software: you can redistribute it and/or modify |
66
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
67
|
|
|
|
|
|
|
the Free Software Foundation, either version 2 of the License, or |
68
|
|
|
|
|
|
|
(at your option) any later version. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
jmx4perl is distributed in the hope that it will be useful, |
71
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
72
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
73
|
|
|
|
|
|
|
GNU General Public License for more details. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
76
|
|
|
|
|
|
|
along with jmx4perl. If not, see . |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
A commercial license is available as well. Please contact roland@cpan.org for |
79
|
|
|
|
|
|
|
further details. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
roland@cpan.org |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
1; |