diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-02-16 14:49:23 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-02-16 14:49:23 +0000 |
commit | 9a14a0b0fef36e7432a4d04015e856a6478be01a (patch) | |
tree | af44c4f850bbe7ed13c7527fe24c1e017ddb5f94 /cpp/src/IceGrid/Client.cpp | |
parent | Mac OS X fix (diff) | |
download | ice-9a14a0b0fef36e7432a4d04015e856a6478be01a.tar.bz2 ice-9a14a0b0fef36e7432a4d04015e856a6478be01a.tar.xz ice-9a14a0b0fef36e7432a4d04015e856a6478be01a.zip |
Removed --routed option and config
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 0e869d5499d..6b375624bf1 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -132,7 +132,6 @@ Client::usage() "-u, --username Login with the given username.\n" "-p, --password Login with the given password.\n" "-S, --ssl Authenticate through SSL.\n" - "-r, --routed Login through a Glacier2 router.\n" "-R, --replica NAME Connect to the replica NAME.\n" ; } @@ -255,10 +254,9 @@ Client::run(int argc, char* argv[]) opts.addOpt("u", "username", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat); opts.addOpt("p", "password", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat); opts.addOpt("S", "ssl"); - opts.addOpt("r", "routed"); opts.addOpt("d", "debug"); opts.addOpt("s", "server"); - opts.addOpt("R", "replica", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat); + opts.addOpt("r", "replica", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat); vector<string> args; try @@ -362,16 +360,7 @@ Client::run(int argc, char* argv[]) password = opts.optArg("password"); } - // - // If a glacier2 router is configured, then set routed to true by - // default. - // Ice::PropertiesPtr properties = communicator()->getProperties(); - bool routed = properties->getPropertyAsIntWithDefault("IceGridAdmin.Routed", communicator()->getDefaultRouter()); - if(opts.isSet("routed")) - { - routed = true; - } string replica = properties->getProperty("IceGridAdmin.Replica"); if(!opts.optArg("replica").empty()) { @@ -384,7 +373,7 @@ Client::run(int argc, char* argv[]) try { int timeout; - if(routed) + if(communicator()->getDefaultRouter()) { Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(communicator()->getDefaultRouter()); if(!router) |