diff options
author | Marc Laukien <marc@zeroc.com> | 2004-08-11 12:34:50 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-08-11 12:34:50 +0000 |
commit | 27ccca23877ffd108d45e58b5c6d88eceebac873 (patch) | |
tree | eedf966478218cd0ac57e36ff10315572b238276 /cpp/src/Glacier2/ClientBlobject.cpp | |
parent | more TransportInfo stuff (diff) | |
download | ice-27ccca23877ffd108d45e58b5c6d88eceebac873.tar.bz2 ice-27ccca23877ffd108d45e58b5c6d88eceebac873.tar.xz ice-27ccca23877ffd108d45e58b5c6d88eceebac873.zip |
more glacier2 stuff
Diffstat (limited to 'cpp/src/Glacier2/ClientBlobject.cpp')
-rw-r--r-- | cpp/src/Glacier2/ClientBlobject.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cpp/src/Glacier2/ClientBlobject.cpp b/cpp/src/Glacier2/ClientBlobject.cpp index 377e8aa492c..3d3e312e1b7 100644 --- a/cpp/src/Glacier2/ClientBlobject.cpp +++ b/cpp/src/Glacier2/ClientBlobject.cpp @@ -17,11 +17,14 @@ using namespace std; using namespace Ice; using namespace Glacier; +static const string clientTraceReject = "Glacier2.Client.Trace.Reject"; + Glacier::ClientBlobject::ClientBlobject(const CommunicatorPtr& communicator, const IceInternal::RoutingTablePtr& routingTable, const string& allowCategories) : Glacier::Blobject(communicator, false), - _routingTable(routingTable) + _routingTable(routingTable), + _traceLevelReject(communicator->getProperties()->getPropertyAsInt(clientTraceReject)) { const string ws = " \t"; string::size_type current = allowCategories.find_first_not_of(ws, 0); @@ -52,8 +55,6 @@ void Glacier::ClientBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& amdCB, const vector<Byte>& inParams, const Current& current) { - assert(_communicator); // Destroyed? - // // If there is an _allowCategories set then enforce it. // @@ -61,9 +62,9 @@ Glacier::ClientBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& a { if(!binary_search(_allowCategories.begin(), _allowCategories.end(), current.id.category)) { - if(_traceLevel >= 1) + if(_traceLevelReject >= 1) { - Trace out(_logger, "Glacier"); + Trace out(current.adapter->getCommunicator()->getLogger(), "Glacier"); out << "rejecting request\n"; out << "identity: " << identityToString(current.id); } @@ -73,6 +74,7 @@ Glacier::ClientBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& a } } + assert(_routingTable); // Destroyed? ObjectPrx proxy = _routingTable->get(current.id); if(!proxy) { |