probe(self,
name)
Return a list that contains information about all intances with the
given class name given in parameter name.
Information in the list is a dictionary with following
attributes:
-
name the specific instance name returned by the instance repr
method.
-
type the specific instance class name
-
attributes A list contains an instance attributes and value.
Each element in the attributes list is an tuple containing
attribute name and it's value.
Example of what is returned: [{'name': '<MonitorServer
instance at 0x01a765734', 'type': 'MonitorServer',
'attributes': [('addr', '('127.0.0.1', 8881)'),
('srv', '<SimpleXMLRPCServer instance at 0x01a785792>')]},
... ]
-
- Parameters:
name -
Name of object to probe for.
(type=string)
- Returns:
-
A list of dictionaries containing information about
instances.
(type=list)
|