Class: Invoker::Power::InvokerHttpProxy
- Inherits:
-
EventMachine::ProxyServer::Connection
- Object
- EventMachine::ProxyServer::Connection
- Invoker::Power::InvokerHttpProxy
- Defined in:
- lib/invoker/power/balancer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
9 10 11 |
# File 'lib/invoker/power/balancer.rb', line 9 def host @host end |
#ip ⇒ Object
Returns the value of attribute ip.
9 10 11 |
# File 'lib/invoker/power/balancer.rb', line 9 def ip @ip end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/invoker/power/balancer.rb', line 9 def port @port end |
Instance Method Details
#set_host(host, selected_backend) ⇒ Object
10 11 12 13 14 |
# File 'lib/invoker/power/balancer.rb', line 10 def set_host(host, selected_backend) self.host = host self.ip = selected_backend[:host] self.port = selected_backend[:port] end |