summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/AdminRouter.h
blob: e261d2e088f26eede43a928e11eaa64cb403c729 (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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#ifndef ICE_GRID_ADMIN_ROUTER_H
#define ICE_GRID_ADMIN_ROUTER_H

#include <Ice/Ice.h>
#include <IceGrid/TraceLevels.h>

namespace IceGrid
{

//
// An Admin Router routes requests to an admin object
//
class AdminRouter : public Ice::BlobjectArrayAsync
{
protected:

    AdminRouter(const std::shared_ptr<TraceLevels>&);

    void invokeOnTarget(const std::shared_ptr<Ice::ObjectPrx>&,
                        const std::pair<const Ice::Byte*, const Ice::Byte*>&,
                        std::function<void(bool, const std::pair<const Ice::Byte*, const Ice::Byte*>&)>&&,
                        std::function<void(std::exception_ptr)>&&,
                        const Ice::Current&);

    const std::shared_ptr<TraceLevels> _traceLevels;
};

}
#endif