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