diff options
author | Benoit Foucher <benoit@zeroc.com> | 2004-06-02 21:17:40 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2004-06-02 21:17:40 +0000 |
commit | c209ff436f4268b8db689a2dd17615456eea78ce (patch) | |
tree | 5feb8607988706851bfdfdd5ba2d3924ba5b8f6c /cpp/config/IcePackAdmin.py | |
parent | Fixed to AMD code generation. (diff) | |
download | ice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.bz2 ice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.xz ice-c209ff436f4268b8db689a2dd17615456eea78ce.zip |
Merged icepack_refactoring2_branch, many IcePack changes.
Diffstat (limited to 'cpp/config/IcePackAdmin.py')
-rw-r--r-- | cpp/config/IcePackAdmin.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/cpp/config/IcePackAdmin.py b/cpp/config/IcePackAdmin.py index 145bb4bc261..b78eb5735a6 100644 --- a/cpp/config/IcePackAdmin.py +++ b/cpp/config/IcePackAdmin.py @@ -151,7 +151,7 @@ def shutdownIcePackNode(): sys.exit(1) print "ok" -def addApplication(descriptor, targets): +def addApplication(descriptor, options): global icePackPort icePackAdmin = os.path.join(toplevel, "bin", "icepackadmin") @@ -159,23 +159,23 @@ def addApplication(descriptor, targets): descriptor = descriptor.replace("\\", "/") command = icePackAdmin + TestUtil.clientOptions + \ r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ - r' -e "application add \"' + descriptor + '\\" ' + targets + ' \"' + " 2>&1" + r' -e "application add \"' + descriptor + '\\" ' + options + ' \"' + " 2>&1" icePackAdminPipe = os.popen(command) + TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: TestUtil.killServers() sys.exit(1) -def removeApplication(descriptor): +def removeApplication(name): global icePackPort icePackAdmin = os.path.join(toplevel, "bin", "icepackadmin") - descriptor = descriptor.replace("\\", "/") command = icePackAdmin + TestUtil.clientOptions + \ r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ - r' -e "application remove \"' + descriptor + '\\" \"' + " 2>&1" + r' -e "application remove \"' + name + '\\" \"' + " 2>&1" icePackAdminPipe = os.popen(command) TestUtil.printOutputFromPipe(icePackAdminPipe) @@ -184,20 +184,19 @@ def removeApplication(descriptor): TestUtil.killServers() sys.exit(1) -def addServer(name, serverDescriptor, server, libpath, targets): +def addServer(serverDescriptor, options): global icePackPort icePackAdmin = os.path.join(toplevel, "bin", "icepackadmin") serverDescriptor = serverDescriptor.replace("\\", "/"); - server = server.replace("\\", "/"); - libpath = libpath.replace("\\", "/"); command = icePackAdmin + TestUtil.clientOptions + \ r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ - r' -e "server add localnode \"' + name + '\\" \\"' + serverDescriptor + '\\" ' + \ - r' \"' + server + '\\" \\"' + libpath + '\\" ' + targets + '\"' + " 2>&1" + r' -e "server add ' + serverDescriptor + ' localnode ' + \ + r' ' + options + '\"' + " 2>&1" icePackAdminPipe = os.popen(command) + TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: print "bailing out" |