diff options
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 |