-
Notifications
You must be signed in to change notification settings - Fork 5
/
example_asjson.json
74 lines (74 loc) · 2.43 KB
/
example_asjson.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"transition_rules": [
{
"transition_type": "Register",
"source_states": [
"initial"
],
"destination_state": "discovering",
"name": "Initial registration",
"description": "A new server which registers enters our initial discovering state"
},
{
"transition_type": "Register",
"source_states": [
"discovering",
"known",
"insufficient"
],
"destination_state": "discovering",
"name": "Re-registration",
"description": "We should ignore repeated registrations from servers that are already registered"
},
{
"transition_type": "SetHwInfo",
"source_states": [
"discovering",
"known",
"insufficient"
],
"destination_state": "known",
"name": "Move to known when receiving good hardware information",
"description": "Once we receive hardware information from a server, we can consider it known if the hardware information is sufficient"
},
{
"transition_type": "SetHwInfo",
"source_states": [
"discovering",
"known",
"insufficient"
],
"destination_state": "insufficient",
"name": "Move to insufficient when receiving bad hardware information",
"description": "Once we receive hardware infomration from a server, we consider the server to be insufficient if the hardware is insufficient"
}
],
"states": {
"discovering": {
"name": "Discovering",
"description": "Indicates that the server has registered but we still don't know anything about its hardware"
},
"initial": {
"name": "Initial",
"description": "The initial state of the state machine. This is a synthetic state that is not actually part of the state machine. It appears in documentation when transition rules hold a single source state that is an empty string"
},
"insufficient": {
"name": "Insufficient",
"description": "Indicates that the server has sufficient hardware"
},
"known": {
"name": "Discovering",
"description": "Indicates that the server has registered but we still don't know anything about its hardware"
}
},
"transition_types": {
"Register": {
"name": "Register",
"description": "Triggered when a server registers"
},
"SetHwInfo": {
"name": "Set hardware info",
"description": "Triggered for every hardware information change"
}
}
}