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
75
76
77
78
79
80
81
82
83
84
85
|
# File 'lib/event_store/http/controls/gossip/response/json.rb', line 7
def self.text(unavailable: nil)
<<-JSON
{
"members": [
{
"instanceId": "00000101-0000-4000-8000-000000000000",
"timeStamp": "2000-01-01T00:00:00.000000Z",
"state": "#{unavailable ? 'Unknown' : 'Master'}",
"isAlive": true,
"internalTcpIp": "127.0.111.1",
"internalTcpPort": 1112,
"internalSecureTcpPort": 0,
"externalTcpIp": "127.0.111.1",
"externalTcpPort": 1113,
"externalSecureTcpPort": 0,
"internalHttpIp": "127.0.111.1",
"internalHttpPort": 2112,
"externalHttpIp": "127.0.111.1",
"externalHttpPort": 2113,
"lastCommitPosition": 1111,
"writerCheckpoint": 111,
"chaserCheckpoint": 11,
"epochPosition": 222,
"epochNumber": 22,
"epochId": "00000001-0000-4000-8000-000000000000",
"nodePriority": 0
},
{
"instanceId": "00000102-0000-4000-8000-000000000000",
"timeStamp": "2000-01-01T00:00:00.000000Z",
"state": "Slave",
"isAlive": true,
"internalTcpIp": "127.0.111.2",
"internalTcpPort": 1112,
"internalSecureTcpPort": 0,
"externalTcpIp": "127.0.111.2",
"externalTcpPort": 1113,
"externalSecureTcpPort": 0,
"internalHttpIp": "127.0.111.2",
"internalHttpPort": 2112,
"externalHttpIp": "127.0.111.2",
"externalHttpPort": 2113,
"lastCommitPosition": 1111,
"writerCheckpoint": 111,
"chaserCheckpoint": 11,
"epochPosition": 222,
"epochNumber": 22,
"epochId": "00000001-0000-4000-8000-000000000000",
"nodePriority": 0
},
{
"instanceId": "00000103-0000-4000-8000-000000000000",
"timeStamp": "2000-01-01T00:00:00.000000Z",
"state": "Slave",
"isAlive": false,
"internalTcpIp": "127.0.111.3",
"internalTcpPort": 1112,
"internalSecureTcpPort": 0,
"externalTcpIp": "127.0.111.3",
"externalTcpPort": 1113,
"externalSecureTcpPort": 0,
"internalHttpIp": "127.0.111.3",
"internalHttpPort": 2112,
"externalHttpIp": "127.0.111.3",
"externalHttpPort": 2113,
"lastCommitPosition": 1111,
"writerCheckpoint": 111,
"chaserCheckpoint": 11,
"epochPosition": 222,
"epochNumber": 22,
"epochId": "00000001-0000-4000-8000-000000000000",
"nodePriority": 0
}
],
"serverIp": "127.0.111.1",
"serverPort": 2112
}
JSON
end
|