summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/AdminI.h
blob: 8cef398e1ca1ede4f11e0cfbd0bf5546e2b953e8 (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
// **********************************************************************
//
// Copyright (c) 2001
// Mutable Realms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_PACK_ADMIN_I_H
#define ICE_PACK_ADMIN_I_H

#include <IcePack/Admin.h>
#include <IcePack/ServerManagerF.h>
#include <IcePack/AdapterManagerF.h>

namespace IcePack
{

class AdminI : public Admin, public IceUtil::Mutex
{
public:

    AdminI(const Ice::CommunicatorPtr&, const ServerManagerPrx&, const AdapterManagerPrx&);

    virtual void addServer(const ServerDescription&, const Ice::Current&);
    virtual ServerDescription getServerDescription(const ::std::string&, const Ice::Current&);
    virtual ServerState getServerState(const ::std::string&, const Ice::Current&);
    virtual bool startServer(const ::std::string&, const Ice::Current&);
    virtual void removeServer(const ::std::string&, const Ice::Current&);
    virtual ServerNames getAllServerNames(const Ice::Current&);

    virtual void addAdapterWithEndpoints(const ::std::string&, const ::std::string&, const ::Ice::Current&);
    virtual void removeAdapter(const ::std::string&, const ::Ice::Current&);
    virtual ::std::string getAdapterEndpoints(const ::std::string&, const ::Ice::Current&);
    virtual AdapterNames getAllAdapterNames(const ::Ice::Current&);

    virtual void shutdown(const Ice::Current&);

private:

    Ice::CommunicatorPtr _communicator;
    ServerManagerPrx _serverManager;
    AdapterManagerPrx _adapterManager;
};

}

#endif