module EventStore::HTTP::Controls::Gossip::Response::Member
Constants
- Leader
- State
Public Class Methods
chaser_checkpoint()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 74 def self.chaser_checkpoint 11 end
epoch_id()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 86 def self.epoch_id UUID.example end
epoch_number()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 82 def self.epoch_number 22 end
epoch_position()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 78 def self.epoch_position 222 end
external_http_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 62 def self.external_http_port Port.example end
external_secure_tcp_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 54 def self.external_secure_tcp_port 0 end
external_tcp_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 50 def self.external_tcp_port Port::TCP::External.example end
instance_id(member_index=nil)
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 7 def self.instance_id(member_index=nil) member_index ||= 1 UUID.example member_index + 100 end
internal_http_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 58 def self.internal_http_port Port::Internal.example end
internal_secure_tcp_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 46 def self.internal_secure_tcp_port 0 end
internal_tcp_ip(member_index=nil)
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 35 def self.internal_tcp_ip(member_index=nil) IPAddress::Cluster.example member_index end
internal_tcp_port()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 42 def self.internal_tcp_port Port::TCP::Internal.example end
is_alive(member_index=nil)
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 27 def self.is_alive(member_index=nil) if member_index == 3 false else true end end
last_commit_position()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 66 def self.last_commit_position 1111 end
node_priority()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 90 def self.node_priority 0 end
state(member_index=nil)
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 17 def self.state(member_index=nil) member_index ||= 1 if member_index == 1 State.leader else State.follower end end
time_stamp()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 13 def self.time_stamp Controls::Time::Raw.example.iso8601 6 end
writer_checkpoint()
click to toggle source
# File lib/event_store/http/controls/gossip/response/member.rb, line 70 def self.writer_checkpoint 111 end