diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/ObjectAdapterI.cpp | 5 | ||||
-rw-r--r-- | cpp/src/Ice/PropertyNames.cpp | 3 | ||||
-rw-r--r-- | cpp/src/Ice/PropertyNames.h | 2 | ||||
-rw-r--r-- | cpp/src/Ice/Reference.cpp | 11 | ||||
-rw-r--r-- | cpp/src/Ice/Reference.h | 2 | ||||
-rw-r--r-- | cpp/src/Ice/ReferenceFactory.cpp | 14 | ||||
-rw-r--r-- | cpp/src/Ice/ReferenceFactory.h | 2 |
7 files changed, 24 insertions, 15 deletions
diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp index 754d82f45f0..1932afdb59c 100644 --- a/cpp/src/Ice/ObjectAdapterI.cpp +++ b/cpp/src/Ice/ObjectAdapterI.cpp @@ -911,7 +911,7 @@ Ice::ObjectAdapterI::newDirectProxy(const Identity& ident, const string& facet) // ReferencePtr ref = _instance->referenceFactory()->create( ident, _instance->getDefaultContext(), facet, Reference::ModeTwoway, false, endpoints, 0, - _instance->defaultsAndOverrides()-> defaultCollocationOptimization); + _instance->defaultsAndOverrides()->defaultCollocationOptimization); return _instance->proxyFactory()->referenceToProxy(ref); } @@ -924,7 +924,8 @@ Ice::ObjectAdapterI::newIndirectProxy(const Identity& ident, const string& facet // ReferencePtr ref = _instance->referenceFactory()->create( ident, _instance->getDefaultContext(), facet, Reference::ModeTwoway, false, id, 0, _locatorInfo, - _instance->defaultsAndOverrides()->defaultCollocationOptimization); + _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); // // Return a proxy for the reference. diff --git a/cpp/src/Ice/PropertyNames.cpp b/cpp/src/Ice/PropertyNames.cpp index c89b0abf810..82f6a784530 100644 --- a/cpp/src/Ice/PropertyNames.cpp +++ b/cpp/src/Ice/PropertyNames.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `../config/PropertyNames.def', Wed Jan 4 16:04:58 2006 +// Generated by makeprops.py from file `../config/PropertyNames.def', Wed Feb 8 17:24:02 2006 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -23,6 +23,7 @@ const char* IceInternal::PropertyNames::IceProps[] = "Ice.Default.CollocationOptimization", "Ice.Default.Host", "Ice.Default.Locator", + "Ice.Default.LocatorCacheTimeout", "Ice.Default.Package", "Ice.Default.Protocol", "Ice.Default.Router", diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h index 937141f50d8..d79eafe36a2 100644 --- a/cpp/src/Ice/PropertyNames.h +++ b/cpp/src/Ice/PropertyNames.h @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `../config/PropertyNames.def', Wed Jan 4 16:04:58 2006 +// Generated by makeprops.py from file `../config/PropertyNames.def', Wed Feb 8 17:24:02 2006 // IMPORTANT: Do not edit this file -- any edits made here will be lost! diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp index 6937b67d27c..b0bcdb05d78 100644 --- a/cpp/src/Ice/Reference.cpp +++ b/cpp/src/Ice/Reference.cpp @@ -772,7 +772,8 @@ IceInternal::DirectReference::changeLocator(const LocatorPrx& newLocator) const LocatorInfoPtr newLocatorInfo = getInstance()->locatorManager()->get(newLocator); return getInstance()->referenceFactory()->create(getIdentity(), getContext(), getFacet(), getMode(), getSecure(), "", 0, newLocatorInfo, - getCollocationOptimization()); + getCollocationOptimization(), + getLocatorCacheTimeout()); } else { @@ -831,7 +832,8 @@ IceInternal::DirectReference::changeAdapterId(const string& newAdapterId) const getInstance()->locatorManager()->get(getInstance()->referenceFactory()->getDefaultLocator()); return getInstance()->referenceFactory()->create(getIdentity(), getContext(), getFacet(), getMode(), getSecure(), newAdapterId, getRouterInfo(), locatorInfo, - getCollocationOptimization()); + getCollocationOptimization(), + getLocatorCacheTimeout()); } else { @@ -991,11 +993,12 @@ void IceInternal::decRef(IceInternal::IndirectReference* p) { p->__decRef(); } IceInternal::IndirectReference::IndirectReference(const InstancePtr& inst, const CommunicatorPtr& com, const Identity& ident, const Context& ctx, const string& fs, Mode md, bool sec, const string& adptid, const RouterInfoPtr& rtrInfo, - const LocatorInfoPtr& locInfo, bool collocationOpt) + const LocatorInfoPtr& locInfo, bool collocationOpt, + int locatorCacheTimeout) : RoutableReference(inst, com, ident, ctx, fs, md, sec, rtrInfo, collocationOpt), _adapterId(adptid), _locatorInfo(locInfo), - _locatorCacheTimeout(inst->defaultsAndOverrides()->defaultLocatorCacheTimeout) + _locatorCacheTimeout(locatorCacheTimeout) { } diff --git a/cpp/src/Ice/Reference.h b/cpp/src/Ice/Reference.h index 2f3a89a3a8a..f610208b70c 100644 --- a/cpp/src/Ice/Reference.h +++ b/cpp/src/Ice/Reference.h @@ -250,7 +250,7 @@ public: IndirectReference(const InstancePtr&, const Ice::CommunicatorPtr&, const Ice::Identity&, const Ice::Context&, const std::string&, Mode, bool, const std::string&, const RouterInfoPtr&, const LocatorInfoPtr&, - bool); + bool, int); const LocatorInfoPtr& getLocatorInfo() const { return _locatorInfo; } diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp index c3601a6d1a3..94baac6b428 100644 --- a/cpp/src/Ice/ReferenceFactory.cpp +++ b/cpp/src/Ice/ReferenceFactory.cpp @@ -86,7 +86,8 @@ IceInternal::ReferenceFactory::create(const Identity& ident, const string& adapterId, const RouterInfoPtr& routerInfo, const LocatorInfoPtr& locatorInfo, - bool collocationOptimization) + bool collocationOptimization, + int locatorCacheTimeout) { Mutex::Lock sync(*this); @@ -104,7 +105,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident, // Create new reference // return new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure, - adapterId, routerInfo, locatorInfo, collocationOptimization); + adapterId, routerInfo, locatorInfo, collocationOptimization, locatorCacheTimeout); } ReferencePtr @@ -410,7 +411,8 @@ IceInternal::ReferenceFactory::create(const string& str) if(beg == string::npos) { return create(ident, _instance->getDefaultContext(), facet, mode, secure, "", routerInfo, locatorInfo, - _instance->defaultsAndOverrides()->defaultCollocationOptimization); + _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); } vector<EndpointIPtr> endpoints; @@ -501,7 +503,8 @@ IceInternal::ReferenceFactory::create(const string& str) throw ex; } return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapter, routerInfo, - locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); break; } default: @@ -578,7 +581,8 @@ IceInternal::ReferenceFactory::create(const Identity& ident, BasicStream* s) { s->read(adapterId); return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapterId, routerInfo, - locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); } } diff --git a/cpp/src/Ice/ReferenceFactory.h b/cpp/src/Ice/ReferenceFactory.h index 874ad79a909..c500767b9ab 100644 --- a/cpp/src/Ice/ReferenceFactory.h +++ b/cpp/src/Ice/ReferenceFactory.h @@ -39,7 +39,7 @@ public: // ReferencePtr create(const ::Ice::Identity&, const ::Ice::Context&, const ::std::string&, Reference::Mode, bool, const ::std::string&, - const RouterInfoPtr&, const LocatorInfoPtr&, bool); + const RouterInfoPtr&, const LocatorInfoPtr&, bool, int); // // Create a fixed reference. // |