diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-06-08 14:29:54 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-06-08 14:29:54 +0000 |
commit | bd4c28900c1e5306bea0a4cb2448f83d29dfa5e9 (patch) | |
tree | cabdd6919e7747b08ee6f076fea6cbf549c8c069 /cpp/config/IceGridAdmin.py | |
parent | Fixed but reported in http://www.zeroc.com/vbulletin/showthread.php?t=1480 (diff) | |
download | ice-bd4c28900c1e5306bea0a4cb2448f83d29dfa5e9.tar.bz2 ice-bd4c28900c1e5306bea0a4cb2448f83d29dfa5e9.tar.xz ice-bd4c28900c1e5306bea0a4cb2448f83d29dfa5e9.zip |
Added node session support.
Diffstat (limited to 'cpp/config/IceGridAdmin.py')
-rw-r--r-- | cpp/config/IceGridAdmin.py | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/cpp/config/IceGridAdmin.py b/cpp/config/IceGridAdmin.py index 517d9ee2122..849b4b205ad 100644 --- a/cpp/config/IceGridAdmin.py +++ b/cpp/config/IceGridAdmin.py @@ -67,7 +67,8 @@ def startIceGridRegistry(port, testdir): r' --IceGrid.Registry.Trace.Adapter=0' + \ r' --IceGrid.Registry.Trace.Object=0' + \ r' --IceGrid.Registry.Trace.Node=0' + \ - r' --Ice.ProgramName=icegridregistry' + r' --Ice.ProgramName=icegridregistry' + \ + r' --Ice.NullHandleAbort' (stdin, iceGridPipe) = os.popen4(command) TestUtil.getServerPid(iceGridPipe) @@ -105,7 +106,8 @@ def startIceGridNode(testdir): r' --IceGrid.Node.Trace.Activator=0' + \ r' --IceGrid.Node.Trace.Adapter=0' + \ r' --IceGrid.Node.Trace.Server=0' + \ - r' --IceGrid.Node.PrintServersReady=node' + r' --IceGrid.Node.PrintServersReady=node' + \ + r' --Ice.NullHandleAbort' (stdin, iceGridPipe) = os.popen4(command) TestUtil.getServerPid(iceGridPipe) @@ -187,40 +189,6 @@ def removeApplication(name): TestUtil.killServers() sys.exit(1) -def addServer(serverDescriptor, options): - - global iceGridPort - iceGridAdmin = os.path.join(toplevel, "bin", "icegridadmin") - - serverDescriptor = serverDescriptor.replace("\\", "/"); - command = iceGridAdmin + TestUtil.clientOptions + \ - r' "--Ice.Default.Locator=IceGrid/Locator:default -p ' + iceGridPort + '" ' + \ - r' -e "server add ' + serverDescriptor + ' localnode ' + \ - r' ' + options + '\"' + " 2>&1" - - iceGridAdminPipe = os.popen(command) - TestUtil.printOutputFromPipe(iceGridAdminPipe) - iceGridAdminStatus = iceGridAdminPipe.close() - if iceGridAdminStatus: - print "bailing out" - TestUtil.killServers() - sys.exit(1) - -def removeServer(name): - - global iceGridPort - iceGridAdmin = os.path.join(toplevel, "bin", "icegridadmin") - - command = iceGridAdmin + TestUtil.clientOptions + \ - r' "--Ice.Default.Locator=IceGrid/Locator:default -p ' + iceGridPort + '" ' + \ - r' -e "server remove \"' + name + '\\" \"' + " 2>&1" - - iceGridAdminPipe = os.popen(command) - iceGridAdminStatus = iceGridAdminPipe.close() - if iceGridAdminStatus: - TestUtil.killServers() - sys.exit(1) - def startServer(name): global iceGridPort |