The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Siebel::Srvrmgr::ListParser::Output::ListCompDef - subclass to parse component definitions

SYNOPSIS

        use Siebel::Srvrmgr::ListParser::Output::ListCompDef;

        my $comp_defs = Siebel::Srvrmgr::ListParser::Output::ListCompDef->new({});

DESCRIPTION

This subclass of SiebeL::Srvrmgr::ListParser::Output parses the output of the command list comp def COMPONENT_NAME.

The order of the fields and their configuration must follow the pattern defined below:

        srvrmgr> configure list comp def
                CC_NAME (76):  Component name
                CT_NAME (76):  Component type name
                CC_RUNMODE (31):  Component run mode (enum)
                CC_ALIAS (31):  Component alias
                CC_DISP_ENABLE_ST (61):   Display enablement state (translatable)
                CC_DESC_TEXT (251):   Component description
                CG_NAME (76):  Component group
                CG_ALIAS (31):  Component Group Alias
                CC_INCARN_NO (23):  Incarnation Number

ATTRIBUTES

All attributes of SiebeL::Srvrmgr::ListParser::Output.

METHODS

All methods of SiebeL::Srvrmgr::ListParser::Output plus the ones explaned below.

get_comp_defs

Returns the content of comp_params attribute.

set_comp_defs

Set the content of the comp_defs attribute. Expects an array reference as parameter.

parse

Parses the content of raw_data attribute, setting the result on parsed_data attribute.

The contents of raw_data is changed to an empty array reference at the end of the process.

It raises an exception when the parser is not able to define the fields_pattern attribute.

_define_pattern

This method overrides the method from the parent class. The pattern is strict following the expected configuration from the "list comp def" command from srvrmgr, as described in the DESCRIPTION.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.

This file is part of Siebel Monitoring Tools.

Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see http://www.gnu.org/licenses/.