NAME

Siebel::Srvrmgr::ListParser::Output::ListProcs::Proc - class to represent instances of processes from "list procs" command

SYNOPSIS

use Siebel::Srvrmgr::OS::Process;

my $proc = Siebel::Srvrmgr::OS::Process->new(
    {
        pid    => 4568,
        fname  => 'siebmtshmw',
        pctcpu => 0.35,
        pctmem => 10,
        rss    => 12345,
        vsz    => 123456
    }
);

DESCRIPTION

This module is a Moose class.

Instances of Siebel::Srvrmgr::ListParser::Output::ListProcs::Proc refer to a single line from the output of the list procs command.

This class offers some validations on the values recovered, as well some additional funcionality as methods besides getters/setters.

ATTRIBUTES

server

A string representing the name of the server that the proc is associated to. It is a required attribute during object creation, and is read-only.

comp_alias

A string of the component alias associated with this proc. It is a required attribute during object creation, and is read-only.

pid

A integer representing the OS PID associated with this proc. It is a required attribute during object creation, and is read-only.

sisproc

A integer representing the tasks sisproc number (whatever that means). It is a required attribute during object creation, and is read-only.

normal_tasks

A integer representing the number of normal tasks in execution for this proc. It is a required attribute during object creation, and is read-only.

sub_tasks

A integer representing the number of subtasks in execution for this proc. It is a required attribute during object creation, and is read-only.

hidden_tasks

A integer representing the number of hidden tasks in execution for this proc. It is a required attribute during object creation, and is read-only.

vm_free

A integer representing the process virtual memory free pages. It is a required attribute during object creation, and is read-only.

vm_used

A integer representing the process virtual memory used pages. It is a required attribute during object creation, and is read-only.

pm_used

A integer representing the process physical memory used pages. It is a required attribute during object creation, and is read-only.

proc_enabled

A boolean value that identifies if this process is enabled to have tasks. It is a required attribute during object creation, and is read-only.

run_state

A string representing the state of the process. It is a required attribute during object creation, and is read-only.

sockets

A integer representing the number of sockets received for this process.

METHODS

All attributes have their respective getter methods (get_ATTRIBUTE_NAME)

get_all_tasks

Returns the sum of the values of the attributes normal_tasks, sub_tasks and hidden_tasks.

SEE ALSO

AUTHOR

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

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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/.