136 self.
_rtcout = OpenRTM_aist.Manager.instance().getLogbuf(
'manager.namingoncorba')
157 self._rtcout.RTC_TRACE(
"bindObject(name = %s, rtobj or mgr)", name)
159 self._cosnaming.rebindByString(name, rtobj.getObjRef(),
True)
161 self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
180 self._rtcout.RTC_TRACE(
"unbindObject(name = %s)", name)
182 self._cosnaming.unbind(name)
184 self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
206 self._rtcout.RTC_TRACE(
"isAlive()")
207 return self._cosnaming.isAlive()
247 self.
_rtcout = manager.getLogbuf(
'manager.namingmanager')
274 self._rtcout.RTC_TRACE(
"NamingManager::registerNameServer(%s, %s)",
275 (method, name_server))
277 self._names.append(self.
Names(method, name_server, name))
295 self._rtcout.RTC_TRACE(
"NamingManager::bindObject(%s)", name)
297 for i
in range(len(self.
_names)):
300 self.
_names[i].ns.bindObject(name, rtobj)
309 self._rtcout.RTC_TRACE(
"NamingManager::bindManagerObject(%s)", name)
311 for i
in range(len(self.
_names)):
314 self.
_names[i].ns.bindObject(name, mgr)
336 self._rtcout.RTC_TRACE(
"NamingManager::update()")
338 rebind = OpenRTM_aist.toBool(self._manager.getConfig().getProperty(
"naming.update.rebind"),
340 for i
in range(len(self.
_names)):
341 if self.
_names[i].ns
is None:
342 self._rtcout.RTC_DEBUG(
"Retrying connection to %s/%s",
351 if not self.
_names[i].ns.isAlive():
352 self._rtcout.RTC_INFO(
"Name server: %s (%s) disappeared.",
358 self._rtcout.RTC_INFO(
"Name server: %s (%s) disappeared.",
382 self._rtcout.RTC_TRACE(
"NamingManager::unbindObject(%s)", name)
384 for i
in range(len(self.
_names)):
386 self.
_names[i].ns.unbindObject(name)
404 self._rtcout.RTC_TRACE(
"NamingManager::unbindAll(): %d names.", len(self.
_compNames))
408 for i
in range(len_):
414 for i
in range(len_):
458 self._rtcout.RTC_TRACE(
"createNamingObj(method = %s, nameserver = %s)",
459 (method, name_server))
466 self._rtcout.RTC_INFO(
"NameServer connection succeeded: %s/%s",
467 (method, name_server))
470 self._rtcout.RTC_INFO(
"NameServer connection failed: %s/%s",
471 (method, name_server))
515 self._compNames.append(self.
Comps(name, rtobj))
525 self._mgrNames.append(self.
Mgr(name, mgr))
544 for i
in range(len_):
554 for i
in range(len_):
588 self._rtcout.RTC_INFO(
"Connected to a name server: %s/%s",
589 (ns.method, ns.nsname))
594 self._rtcout.RTC_DEBUG(
"Name service: %s/%s still not available.",
595 (ns.method, ns.nsname))
598 self._rtcout.RTC_DEBUG(
"Name server: %s/%s disappeared again.",
599 (ns.method, ns.nsname))
def registerCompName(self, name, rtobj)
def __init__(self, manager)
def __init__(self, meth, name, naming)
def registerMgrName(self, name, mgr)
def bindCompsTo(self, ns)
def __init__(self, n, obj)
def __init__(self, n, obj)
def unbindObject(self, name)
def unbindObject(self, name)
def __init__(self, orb, names)
def createNamingObj(self, method, name_server)
CORBA Naming Service helper class.
def bindObject(self, name, rtobj)
def unregisterMgrName(self, name)
def isAlive(self)
Check if the name service is alive.
def bindManagerObject(self, name, mgr)
def unbindObject(self, name)
def bindObject(self, name, rtobj)
def unregisterCompName(self, name)
def bindObject(self, name, rtobj)
def retryConnection(self, ns)
Rebind the component to NameServer.
def isAlive(self)
Check if the name service is alive.
def registerNameServer(self, method, name_server)