blob: 40a50ef8c3bf76426f2f56924bc2a932ef8939b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. 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
|