summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeSessionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-06-30 13:35:14 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-06-30 13:35:14 +0000
commit44e9ba02f6402587d1757708c78a007a143fc204 (patch)
treef0e03f52ce60485937c13af977f68107bcd5f82a /cpp/src/IceGrid/NodeSessionI.cpp
parentMerged fix from branch (throughput performance issue on Win32) (diff)
downloadice-44e9ba02f6402587d1757708c78a007a143fc204.tar.bz2
ice-44e9ba02f6402587d1757708c78a007a143fc204.tar.xz
ice-44e9ba02f6402587d1757708c78a007a143fc204.zip
Changed to the observer interfaces.
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionI.cpp')
-rw-r--r--cpp/src/IceGrid/NodeSessionI.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/cpp/src/IceGrid/NodeSessionI.cpp b/cpp/src/IceGrid/NodeSessionI.cpp
index 838158e8719..98eaa052aee 100644
--- a/cpp/src/IceGrid/NodeSessionI.cpp
+++ b/cpp/src/IceGrid/NodeSessionI.cpp
@@ -14,10 +14,8 @@
using namespace std;
using namespace IceGrid;
-NodeSessionI::NodeSessionI(const DatabasePtr& database, const RegistryObserverPrx& observer, const string& name,
- const NodePrx& node) :
+NodeSessionI::NodeSessionI(const DatabasePtr& database, const string& name, const NodePrx& node) :
_database(database),
- _observer(observer),
_name(name),
_node(node),
_startTime(IceUtil::Time::now()),
@@ -28,16 +26,6 @@ NodeSessionI::NodeSessionI(const DatabasePtr& database, const RegistryObserverPr
try
{
_database->addNode(name, this);
-
- try
- {
- _observer->nodeUp(_name);
- }
- catch(const Ice::LocalException& ex)
- {
- // TODO: Log a warning?
- cerr << ex << endl;
- }
}
catch(...)
{
@@ -80,15 +68,6 @@ NodeSessionI::destroy(const Ice::Current& current)
try
{
- _observer->nodeDown(_name);
- }
- catch(const Ice::LocalException&)
- {
- // TODO: Log a warning?
- }
-
- try
- {
current.adapter->remove(current.id);
}
catch(const Ice::ObjectAdapterDeactivatedException&)