Siebel::Srvrmgr::ListParser::Output::ListTasks::Task - class to represent a Siebel task
my $task = $class->new( { server_name => 'siebfoobar', comp_alias => 'SRProc', id => 5242888, pid => 20503, status => 'Running' } )
An object that represents each task from a list tasks command output from srvrmgr program.
list tasks
This class uses the roles Siebel::Srvrmgr::ListParser::Output::ToString and Siebel::Srvrmgr::ListParser::Output::Duration.
The list of attributes, with their respective inner parenthesis:
server_name: Server name (string)
comp_alias: Component alias (string)
id: Internal task id (integer)
pid: Task process id (integer)
run_state: Task run state (string)
run_mode: Task run mode (string)
status: Task-reported status (string)
group_alias: Component group alias (string)
parent_id: Parent task id (integer)
incarn_no: Incarnation Number (integer)
label: Task Label (string)
type: Task Type (string)
ping_time: Last ping time for task (string)
The attributes that are required are:
server_name
comp_alias
id
pid
status
Depending on the type of output recovered from the srvrmgr, not all attributes will be available except the required.
srvrmgr
All attributes have a getter named get_<attribute name>.
get_<attribute name>
Since all attributes are read-only there is no corresponding setter.
See also the documentation of the use roles for more information.
This method includes validations in the values provided during object creation.
Siebel::Srvrmgr::ListParser::Output::ToString
Siebel::Srvrmgr::ListParser::Output::Duration
Siebel::Srvrmgr::ListParser::Output::Tabular::ListTasks
Moose
MooseX::FollowPBP
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This software is copyright (c) 2013 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.