summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServerFactory.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-12-13 23:14:19 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-12-13 23:14:19 +0000
commit88068f53495c38104849bee7ae62a6a8bb88c211 (patch)
tree40f0939145115b3f0702521511aa6ff673f4e2ca /cpp/src/IcePack/ServerFactory.cpp
parentRemoved more spurious whitespace: (diff)
downloadice-88068f53495c38104849bee7ae62a6a8bb88c211.tar.bz2
ice-88068f53495c38104849bee7ae62a6a8bb88c211.tar.xz
ice-88068f53495c38104849bee7ae62a6a8bb88c211.zip
Added wait queue to IcePack and use it to wait for adapter activation.
Diffstat (limited to 'cpp/src/IcePack/ServerFactory.cpp')
-rw-r--r--cpp/src/IcePack/ServerFactory.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/IcePack/ServerFactory.cpp b/cpp/src/IcePack/ServerFactory.cpp
index 30ccf7d2895..f2773d86573 100644
--- a/cpp/src/IcePack/ServerFactory.cpp
+++ b/cpp/src/IcePack/ServerFactory.cpp
@@ -59,10 +59,12 @@ public:
IcePack::ServerFactory::ServerFactory(const Ice::ObjectAdapterPtr& adapter,
const TraceLevelsPtr& traceLevels,
const Freeze::DBEnvironmentPtr& dbEnv,
- const ActivatorPtr& activator) :
+ const ActivatorPtr& activator,
+ const WaitQueuePtr& waitQueue) :
_adapter(adapter),
_traceLevels(traceLevels),
- _activator(activator)
+ _activator(activator),
+ _waitQueue(waitQueue)
{
Ice::PropertiesPtr properties = _adapter->getCommunicator()->getProperties();
_waitTime = properties->getPropertyAsIntWithDefault("IcePack.Node.WaitTime", 60);
@@ -181,6 +183,12 @@ IcePack::ServerFactory::createServerAndAdapters(const ServerDescription& descrip
return proxy;
}
+const WaitQueuePtr&
+IcePack::ServerFactory::getWaitQueue() const
+{
+ return _waitQueue;
+}
+
//
// Create a new server adapter servant with the given name and server
// and add it the evictor database.