Package rosunit :: Module pmon :: Class Process
[frames] | no frames]

Class Process

source code

object --+
         |
        Process
Known Subclasses:

Basic process representation for ProcessMonitor. Must be subclassed to provide actual start()/stop() implementations.

Instance Methods
 
__init__(self, package, name, args, env, respawn=False, required=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
dict { str: val }
get_info(self)
Get all data about this process in dictionary form
source code
 
start(self) source code
 
is_alive(self) source code
 
stop(self, errors=[])
Stop the process.
source code
 
get_exit_description(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, package, name, args, env, respawn=False, required=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_info(self)

source code 

Get all data about this process in dictionary form

Returns: dict { str: val }
dictionary of all relevant process properties

stop(self, errors=[])

source code 

Stop the process. Record any significant error messages in the errors parameter

Parameters:
  • errors ([str]) - error messages. stop() will record messages into this list.