Class: Equity::Node::Static
Instance Attribute Summary collapse
Attributes inherited from Equity::Node
#address, #client_address, #client_port, #counter, #failure_counter, #port
Instance Method Summary
collapse
#connected?, #initialize, #shutdown?, #stop_accepting!, #to_s, with_socket
Constructor Details
This class inherits a constructor from Equity::Node
Instance Attribute Details
#counter=(value) ⇒ Object
Sets the attribute counter
90
91
92
|
# File 'lib/equity/node.rb', line 90
def counter=(value)
@counter = value
end
|
Instance Method Details
#connect(client) ⇒ Object
96
97
98
|
# File 'lib/equity/node.rb', line 96
def connect(client)
raise(RuntimeError, 'static nodes cannot be connected')
end
|
#connected=(bool) ⇒ Object
92
93
94
|
# File 'lib/equity/node.rb', line 92
def connected=(bool)
@client = bool
end
|
#disconnect ⇒ Object
100
101
102
|
# File 'lib/equity/node.rb', line 100
def disconnect
raise(RuntimeError, 'static nodes cannot be disconnected')
end
|
#owns_socket?(socket) ⇒ Boolean
108
109
110
|
# File 'lib/equity/node.rb', line 108
def owns_socket?(socket)
false
end
|
#sockets ⇒ Object
104
105
106
|
# File 'lib/equity/node.rb', line 104
def sockets
[]
end
|