diff options
author | Marc Laukien <marc@zeroc.com> | 2004-08-11 15:16:48 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-08-11 15:16:48 +0000 |
commit | cf4f48c92865a0ee086402f238c8b510d1c9d43a (patch) | |
tree | 702367a199509c4f2a321e60f9f51d54c1d546af /cpp/src/Glacier2/Blobject.cpp | |
parent | more glacier2 stuff (diff) | |
download | ice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.tar.bz2 ice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.tar.xz ice-cf4f48c92865a0ee086402f238c8b510d1c9d43a.zip |
more glacier 2 and reverse proxy work
Diffstat (limited to 'cpp/src/Glacier2/Blobject.cpp')
-rw-r--r-- | cpp/src/Glacier2/Blobject.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/Blobject.cpp b/cpp/src/Glacier2/Blobject.cpp index 779dc292615..7f1f5244ca5 100644 --- a/cpp/src/Glacier2/Blobject.cpp +++ b/cpp/src/Glacier2/Blobject.cpp @@ -13,8 +13,14 @@ using namespace std; using namespace Ice; using namespace Glacier; +static const string serverAlwaysBatch = "Glacier2.Server.AlwaysBatch"; +static const string clientAlwaysBatch = "Glacier2.Client.AlwaysBatch"; + Glacier::Blobject::Blobject(const CommunicatorPtr& communicator, bool reverse) : - _logger(communicator->getLogger()) + _logger(communicator->getLogger()), + _alwaysBatch(reverse ? + communicator->getProperties()->getPropertyAsInt(serverAlwaysBatch) > 0 : + communicator->getProperties()->getPropertyAsInt(clientAlwaysBatch) > 0) { _requestQueue = new RequestQueue(communicator, reverse); _requestQueueControl = _requestQueue->start(); |