diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-04-01 15:42:10 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-04-01 15:42:10 +0000 |
commit | f496752b90c2d5c9099b7dbca383bd30820a6ebd (patch) | |
tree | daba3e307aea127eccb2b1c50fe9353f18f1ca05 /cpp/src/IceGrid/NodeI.h | |
parent | ObjectNotExistException is now retried. (diff) | |
download | ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.tar.bz2 ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.tar.xz ice-f496752b90c2d5c9099b7dbca383bd30820a6ebd.zip |
Copied IcePack code to IceGrid.
Diffstat (limited to 'cpp/src/IceGrid/NodeI.h')
-rw-r--r-- | cpp/src/IceGrid/NodeI.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/NodeI.h b/cpp/src/IceGrid/NodeI.h new file mode 100644 index 00000000000..d3eedf607df --- /dev/null +++ b/cpp/src/IceGrid/NodeI.h @@ -0,0 +1,52 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef ICE_GRID_NODE_I_H +#define ICE_GRID_NODE_I_H + +#include <IceGrid/Internal.h> + +namespace IceGrid +{ + +class Activator; +typedef IceUtil::Handle<Activator> ActivatorPtr; + +class ServerFactory; +typedef IceUtil::Handle<ServerFactory> ServerFactoryPtr; + +class NodeI : public Node +{ +public: + + NodeI(const ActivatorPtr&, const std::string&, const ServerFactoryPtr&, + const Ice::CommunicatorPtr&, const Ice::PropertiesPtr&); + + virtual ServerPrx createServer(const std::string&, const ServerDescriptorPtr&, const Ice::Current&) const; + virtual ServerAdapterPrx createServerAdapter(const ServerPrx&, const std::string&, const Ice::Current&) const; + + virtual std::string createTmpDir(const Ice::Current&) const; + virtual void destroyTmpDir(const std::string&, const Ice::Current&) const; + + virtual std::string getName(const Ice::Current&) const; + virtual std::string getHostname(const Ice::Current&) const; + virtual void shutdown(const Ice::Current&) const; + +private: + + const ActivatorPtr _activator; + const std::string _name; + const std::string _hostname; + const ServerFactoryPtr _factory; + std::string _tmpDir; +}; + +} + +#endif |