Siebel::Srvrmgr::ListParser::Output - base class of srvrmgr output
use Siebel::Srvrmgr::ListParser::Output; my $output = Siebel::Srvrmgr::ListParser::Output->new({ data_type => 'sometype', raw_data => \@data, cmd_line => 'list something from somewhere'}); $output->store($complete_pathname);
Siebel::Srvrmgr::ListParser::Output is a superclass of output types classes.
It contains only basic attributes and methods that enable specific parsing and serializable methods.
The parse method must be overrided by subclasses or a exception will be raised during object creation.
parse
Identifies which kind of data is being given to the class. This is usually used by abstract factory class to identify which subclass of Siebel::Srvrmgr::ListParser::Output must be created.
This attribute is required during object creation.
An array reference with the lines to be processed.
An hash reference with the data parsed from raw_data attribute.
raw_data
A string of the command that originates from the output (the data of raw_data attribute).
A boolean attribute that defines if the raw data recovered from srvrmgr should be kept or discarded as soon as possibly.
srvrmgr
Having a default value of true, it should help reducing memory usage or debugging, if set false.
Getter for the clear_raw attribute.
clear_raw
Setter for the clear_raw attribute.
Returns an string of the attribute get_cmd_line.
get_cmd_line
Retuns an hash reference of data_parsed attribute.
data_parsed
Sets the data_parsed attribute. It is expected an hash reference as parameter of the method.
Returns an array reference of the attribute raw_data.
Sets the raw_data attribute. An array reference is expected as parameter of the method.
Method inherited from MooseX::Storage::IO::StorableFile role. It loads a previously serialized Siebel::Srvrmgr::ListParser:Output object into memory.
Method inherited from MooseX::Storage::IO::StorableFile role. It stores (serializes) a Siebel::Srvrmgr::ListParser:Output object into a file. A a string of the filename (with complete or not full path) is expected as a parameter.
All subclasses of Siebel::Srvrmgr::ListParser::Object will call the method parse right after object instatiation.
This method must be overrided by subclasses.
Moose
MooseX::Storage
MooseX::Storage::IO::StorableFile
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.