Siebel::Srvrmgr::ListParser::Output::ListComp::Comp - class that represents a Siebel component
use Siebel::Srvrmgr::ListParser::Output::ListComp::Comp; my $comp = Siebel::Srvrmgr::ListParser::Output::ListComp::Comp->new({ data => \%data, cc_alias => 'MyComp' }); print 'NAME = ', $comp->cc_name(), "\n"; foreach my $param(@{$comp->get_params()}) { print $comp->get_param_val($param), "\n"; }
This class is meant to be used together with Siebel::Srvrmgr::ListParser::Output::Server since a component is always associated with a Siebel server. It make it easy to access and modify components as desired (for example, to export all components from one server to another changing some of their parameters).
Beware that some of the attributes of the component may reflect only the current state when the component data was recovered and are, by nature, dinamic. Some example are the number of running tasks and state of the component.
A hash reference with the data of the component. The expected structure of the hash reference is the same one provided by the method get_comp of the class Siebel::Srvrmgr::ListParser::Output::Server.
get_comp
This is a required attribute during object creation.
A string of the alias of the component.
A string of the name of the component.
A string of the component type alias.
A string of the component type name.
A string of the component group alias.
A string of the component run mode.
A string of the component display run state.
This attribute is read-only.
An integer with the number of running tasks of the component.
An integer with the maximum number of tasks the component will execute before restart itself.
An integer wit the active MTS processes running for the component.
An integer with the maximum number of MTS process that will run for the component.
An string representing the start time of the component.
An string representing the end time of the component.
A string representing the status of the component.
An integer with representing the component incarnation number.
A string representing the description of the component.
All attributes have the same methods name to access them. For setting them, just invoke the method name with the desirable value as parameter.
The BUILD method will create all attributes/methods based on the value of the data attribute.
BUILD
data
Once this operation is finished, the data attribute is set to an empty hash reference.
Returns an array reference with all the parameters names associated of the component object.
Moose
namespace::autoclean
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
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/.
To install Siebel::Srvrmgr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Siebel::Srvrmgr
CPAN shell
perl -MCPAN -e shell install Siebel::Srvrmgr
For more information on module installation, please visit the detailed CPAN module installation guide.