NAME
Siebel::Srvrmgr::OS::Process - class to represents a operational system process of Siebel
DESCRIPTION
This class holds information regarding a operational system process that is (hopefully) related to a running Siebel Server.
ATTRIBUTES
Except for the comp_alias
attribute, all attributes are read-only and required during object instantiation.
pid
A integer representing the process identification.
fname
A string of the program filename
pctcpu
A float of the percentage of CPU the process was using.
pctmem
A float of the percentage of memory the process was using.
rss
For Unix-like OS only: the RSS of the process.
vsz
For Unix-like OS only: the VSZ used by the process.
comp_alias
A string of the component alias associated with the process.
When the process is not directly related to Siebel (for example, a web server that servers SWSE), the value will be automatically defined to "/NA".
When the PID is not identified in the source (a class that implements Siebel::Srvrmgr::Comps_source), the default value will be "unknown".
tasks_num
A integer representing the number of tasks that Siebel Component has executed in determined moment.
This is read-write, non-required attribute with the default value of zero. For processes related to Siebel but not related to Siebel Components, this is the expected value too.
METHODS
All attributes have their "getter" methods as defined in the Perl Best Practices book.
set_comp_alias
Sets the attribute comp_alias
. Expects a string passed as parameter.
BUILD
This method is invoked automatically when a object is created.
It takes care of setting proper initialization of the comp_alias
attribute.
is_comp
Returns true if the process is from a Siebel component, otherwise false.
set_tasks_num
Sets the value of tasks_num
related to this process.
Expects as parameter a positive integer.
The method will validate if the process being updated is related to a Siebel Component. If not, a warning will be raised and no update will be made.