aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/host_name.h
blob: 5a592771d535133280f55ead9911f0d1757871a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace vespalib {

/**
 * Simple utility used to determine which host we are running on. The
 * get function should return the fully qualified host name.
 **/
class HostName
{
private:
    static const vespalib::string _host_name;
public:
    static const vespalib::string &get() { return _host_name; }
};

} // namespace vespalib