diff options
author | aleherbau | 2011-05-11 13:49:52 +0000 |
---|---|---|
committer | aleherbau | 2011-05-11 13:49:52 +0000 |
commit | 3c43ed9828902c5bf7d131742f10d507f64293cd (patch) | |
tree | 40d590a59a0719241066ac5e51713c798bbc3981 /python/src/tcf/protocol.py | |
parent | af121b71d340484580a2c1e47f70f1005db9cd9f (diff) | |
download | org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.gz org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.xz org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.zip |
TCF Python: Implemented LocatorService
Diffstat (limited to 'python/src/tcf/protocol.py')
-rw-r--r-- | python/src/tcf/protocol.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/python/src/tcf/protocol.py b/python/src/tcf/protocol.py index 2a00c31ff..8aa37dbd6 100644 --- a/python/src/tcf/protocol.py +++ b/python/src/tcf/protocol.py @@ -28,6 +28,9 @@ def startEventQueue(): if _event_queue and not _event_queue.isShutdown(): return _event_queue = EventQueue() _event_queue.start() + # initialize LocatorService + from services.local.LocatorService import LocatorService + _event_queue.invokeLater(LocatorService) def getEventQueue(): """ @@ -151,8 +154,13 @@ def log(msg, x=None): _logger.log(msg, x) def getLocator(): - from services import locator - return locator.getLocator() + """ + Get instance of the framework locator service. + The service can be used to discover available remote peers. + @return instance of LocatorService. + """ + from tcf.services.local.LocatorService import LocatorService + return LocatorService.locator def getOpenChannels(): """ |