-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonDefines.h
More file actions
executable file
·58 lines (43 loc) · 923 Bytes
/
Copy pathCommonDefines.h
File metadata and controls
executable file
·58 lines (43 loc) · 923 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include"RxDiscovery/IncludeExtLibs.h"
#include"RxDiscovery/Export.h"
namespace RxDiscovery {
/**
Discovery:
- Support channels, etc
- K = id
- V = ServiceData, ChannelData, EntityData, etc
I need to support:
- Liveliness of entities - through heartbeats, lease-durations and timeouts.
*/
template <typename K, typename V>
class Discovery;
template <typename K, typename V>
class LookupResource;
template <typename K, typename V>
class ServiceDirectory;
template <typename K, typename V>
class ResourceDirectory;
class ServiceHealth;
class ServiceResourceUsage;
enum class ResourceStatusKind
{
Register,
AliveCheck,
Unregister,
Active,
Inactive
};
enum class ResourceManagerStatusKind
{
Announce,
Query,
};
enum class ResourceUsage
{
RUNNING,
STOPPED,
BANDWIDTH
};
typedef Status::EventStatusTracker<ResourceStatusKind, int> ResourceStatus;
}