iceberg-cpp
Loading...
Searching...
No Matches
fb303_types.h
1
7#ifndef fb303_TYPES_H
8#define fb303_TYPES_H
9
10#include <iosfwd>
11
12#include <thrift/Thrift.h>
13#include <thrift/TApplicationException.h>
14#include <thrift/TBase.h>
15#include <thrift/protocol/TProtocol.h>
16#include <thrift/transport/TTransport.h>
17
18#include <functional>
19#include <memory>
20
21
22namespace facebook { namespace fb303 {
23
27struct fb_status {
28 enum type {
29 DEAD = 0,
30 STARTING = 1,
31 ALIVE = 2,
32 STOPPING = 3,
33 STOPPED = 4,
34 WARNING = 5
35 };
36};
37
38extern const std::map<int, const char*> _fb_status_VALUES_TO_NAMES;
39
40std::ostream& operator<<(std::ostream& out, const fb_status::type& val);
41
42std::string to_string(const fb_status::type& val);
43
44}} // namespace
45
46#endif
Definition FacebookService.cpp:9
Definition fb303_types.h:27