6 Copyright (C) 2009-2014 8 RT-Synthesis Research Group 9 Intelligent Systems Research Institute, 10 National Institute of Advanced Industrial Science and Technology (AIST), 13 Licensed under the Eclipse Public License -v 1.0 (EPL) 14 http://www.opensource.org/licenses/eclipse-1.0.txt 16 Object representing a name server node in the tree. 22 from omniORB
import CORBA, TRANSIENT_ConnectFailed
32 '''Node representing a name server. 34 Name server nodes should only be present in the first level of the tree. 35 They can contain directories, managers and components as children. 37 This class is a specialisation of the Directory class. It adds the 38 functionality necessary for connecting to a name server and getting the 42 def __init__(self, orb=None, address=None, parent=None, filter=[],
46 @param orb An orb object to use to connect to the name server. 47 @param address The address of the name server. Used as the node name. 48 @param parent The parent node of this node, if any. 49 @param filter A list of paths to filter by. 52 super(NameServer, self).
__init__(name=address, parent=parent,
53 filter=filter, *args, **kwargs)
58 '''Is this node a name server (specialisation of directory nodes)?''' 63 '''The ORB used to access this name server.''' 69 '''The object representing this name server.''' 87 except CORBA.ORB.InvalidName:
90 root_context = self._ns_obj._narrow(CosNaming.NamingContext)
91 except CORBA.TRANSIENT, e:
92 if e.args[0] == TRANSIENT_ConnectFailed:
96 if CORBA.is_nil(root_context):
def _connect_to_naming_service(self, address)
def _parse_server(self, address, orb, filter=[])
def _parse_context(self, context, orb, filter=[])
def __init__(self, orb=None, address=None, parent=None, filter=[], args, kwargs)