summaryrefslogtreecommitdiffstats
path: root/config/src/apps/configproxy-cmd/proxycmd.h
blob: 6fc8261991fab28e0b79bef21ad26e3a78ecd144 (plain) (blame)
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
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "flags.h"
#include <vespa/fnet/frt/frt.h>


class ProxyCmd
{
private:
    FRT_Supervisor *_supervisor;
    FRT_Target     *_target;
    FRT_RPCRequest *_req;
    Flags           _flags;

    void initRPC();
    void invokeRPC();
    void finiRPC();
    void printArray(FRT_Values *rvals);
    vespalib::string makeSpec();
    void autoPrint();
public:
    ProxyCmd(const Flags& flags);

    virtual ~ProxyCmd() {}

    int action();
};