diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-09-30 04:58:01 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-09-30 04:58:01 +0000 |
commit | a795900d002f4182b13b32f6ebf3391458786123 (patch) | |
tree | 3a75ed09a7ce57e0253f54ee6f0cbcf08dfba3ac /cpp/src/IceGrid/Parser.cpp | |
parent | Bug 498. (diff) | |
download | ice-a795900d002f4182b13b32f6ebf3391458786123.tar.bz2 ice-a795900d002f4182b13b32f6ebf3391458786123.tar.xz ice-a795900d002f4182b13b32f6ebf3391458786123.zip |
Added support for <adapter name>.ReplicaId.
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 5009b2205fb..46bd904ba25 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -102,13 +102,13 @@ Parser::usage() " manual." "\n" "adapter list List all registered adapters.\n" - "adapter endpoints ID [SERVERID]\n" - " Get endpoints of adapter ID from server SERVERID.\n" - " If SERVERID is not specified, get the endpoints of all\n" + "adapter endpoints ID [REPLICAID]\n" + " Show the endpoints of adapter ID from replica REPLICAID.\n" + " If REPLICAID is not specified, show the endpoints of all\n" " the registered replicas.\n" - "adapter remove ID [SERVERID]\n" - " Remove the endpoints of adapter ID from server SERVERID.\n" - " If SERVERID is not specified, remove the endpoints of all\n" + "adapter remove ID [REPLICAID]\n" + " Remove the endpoints of adapter ID from replica REPLICAID.\n" + " If REPLICAID is not specified, remove the endpoints of all\n" " the registered replicas.\n" "\n" "object add PROXY [TYPE] Add an object to the object registry,\n" @@ -952,8 +952,7 @@ Parser::removeAdapter(const list<string>& args) StringObjectProxyDict proxies = _admin->getAdapterEndpoints(adapterId); if(args.size() > 1) { - string serverId = *p++; - _admin->removeAdapterWithServerId(adapterId, serverId); + _admin->removeAdapterWithReplicaId(adapterId, *p++); } else { |