aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient/src/vespa/vespaclient/spoolmaster/application.h
blob: 0cd8e1a917a8fe61cd88617273caaaa67162f5ad (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
31
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/fastos/app.h>
#include <string>
#include <vector>

namespace spoolmaster {
/**
 * main spoolmaster application class
 */
class Application : public FastOS_Application {
private:
    std::string _masterInbox;
    std::vector<std::string> _inboxFiles;

    std::string _outboxParentDir;
    std::vector<std::string> _outboxes;

    typedef std::vector<std::string>::iterator sviter_t;

    bool scanInbox();
    bool findOutboxes();
    void moveLinks();
public:
    Application();
    ~Application();
    int Main() override;
};

}