summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeI.h
blob: d3eedf607df5d5397927cc15a98418ccb4562166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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