Directory node object. More...
Public Member Functions | |
def | __init__ (self, name=None, parent=None, children=None, filter=[], args, kwargs) |
def | context (self) |
def | is_directory (self) |
def | reparse (self) |
def | unbind (self, name) |
Public Member Functions inherited from rtctree.node.TreeNode | |
def | __init__ (self, name=None, parent=None, children=None, filter=[], dynamic=False, args, kwargs) |
def | __str__ (self) |
def | add_callback (self, event, cb, args=None) |
def | children (self) |
def | children_names (self) |
def | depth (self) |
def | dynamic (self) |
def | dynamic (self, dynamic) |
def | full_path (self) |
def | full_path_str (self) |
def | get_node (self, path) |
def | has_path (self, path) |
def | is_child (self, other_node) |
def | is_component (self) |
def | is_directory (self) |
def | is_manager (self) |
def | is_nameserver (self) |
def | is_parent (self, other_node) |
def | is_unknown (self) |
def | is_zombie (self) |
def | iterate (self, func, args=None, filter=[]) |
def | name (self) |
def | nameserver (self) |
def | orb (self) |
def | parent (self) |
def | parent (self, new_parent) |
def | parent_name (self) |
def | rem_callback (self, event, cb) |
def | remove_child (self, child) |
def | root (self) |
Private Member Functions | |
def | _parse_context (self, context, orb, filter=[]) |
def | _process_binding (self, binding, orb, filter) |
Private Attributes | |
_context | |
Directory node object.
Node representing a naming context on a name server. Name servers contain contexts (including the root context) and objects. For us, contexts are directories and objects are managers and components. A directory context may specialise as a name server context, in which case it represents the root context of a name server.
Definition at line 41 of file directory.py.
def rtctree.directory.Directory.__init__ | ( | self, | |
name = None , |
|||
parent = None , |
|||
children = None , |
|||
filter = [] , |
|||
args, | |||
kwargs | |||
) |
Constructor. Calls the TreeNode constructor.
Definition at line 51 of file directory.py.
|
private |
Definition at line 102 of file directory.py.
|
private |
Definition at line 123 of file directory.py.
def rtctree.directory.Directory.context | ( | self | ) |
The object representing this naming context.
Definition at line 92 of file directory.py.
def rtctree.directory.Directory.is_directory | ( | self | ) |
Is this node a directory?
Definition at line 98 of file directory.py.
def rtctree.directory.Directory.reparse | ( | self | ) |
Reparse all children of this directory. This effectively rebuilds the tree below this node. This operation takes an unbounded time to complete; if there are a lot of objects registered below this directory's context, they will all need to be parsed.
Definition at line 56 of file directory.py.
def rtctree.directory.Directory.unbind | ( | self, | |
name | |||
) |
Unbind an object from the context represented by this directory. Warning: this is a dangerous operation. You may unlink an entire section of the tree and be unable to recover it. Be careful what you unbind. The name should be in the format used in paths. For example, 'manager.mgr' or 'ConsoleIn0.rtc'.
Definition at line 69 of file directory.py.
|
private |
Definition at line 105 of file directory.py.