line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Siebel::Srvrmgr::ListParser::Output::Set; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Siebel::Srvrmgr::ListParser::Output::LoadPreferences - subclass to parse load preferences command. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
2525
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
12
|
1
|
|
|
1
|
|
4460
|
use namespace::autoclean; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
13
|
1
|
|
|
1
|
|
51
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
102
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
extends 'Siebel::Srvrmgr::ListParser::Output'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
See L<Siebel::Srvrmgr::ListParser::Output> for example. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This class is a subclass of L<Siebel::Srvrmgr::ListParser::Output>. In truth, this is not a parser for a C<list> command, but since the usage of |
26
|
|
|
|
|
|
|
C<load preferences> is strongly recommended, this subclasses was added to enable usage in L<Siebel::Srvrmgr::Daemon::Action> subclasses. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 get_location |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Returns the C<location> attribute. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 set_location |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Set the C<location> attribute. Expects and string as parameter. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 parse |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Parses the C<load preferences> output stored in the C<raw_data> attribute, setting the C<data_parsed> attribute. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
The C<raw_data> attribute will be set to an reference to an empty array. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
override 'parse' => sub { |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $self = shift; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# $self->set_data_parsed( \%parsed_lines ); |
53
|
|
|
|
|
|
|
$self->set_raw_data( [] ); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
return 1; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=pod |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=over 2 |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L<Siebel::Srvrmgr::ListParser::Output> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
L<Moose> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 AUTHOR |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This file is part of Siebel Monitoring Tools. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Siebel Monitoring Tools is free software: you can redistribute it and/or modify |
86
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
87
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
88
|
|
|
|
|
|
|
(at your option) any later version. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Siebel Monitoring Tools is distributed in the hope that it will be useful, |
91
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
92
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
93
|
|
|
|
|
|
|
GNU General Public License for more details. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
96
|
|
|
|
|
|
|
along with Siebel Monitoring Tools. If not, see L<http://www.gnu.org/licenses/>. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |
99
|
|
|
|
|
|
|
|
100
|
1
|
|
|
1
|
|
4
|
no Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
101
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |