Class: Invoker::Power::InvokerHttpProxy

Inherits:
EventMachine::ProxyServer::Connection
  • Object
show all
Defined in:
lib/invoker/power/balancer.rb

Direct Known Subclasses

InvokerHttpsProxy

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



9
10
11
# File 'lib/invoker/power/balancer.rb', line 9

def host
  @host
end

#ipObject

Returns the value of attribute ip.



9
10
11
# File 'lib/invoker/power/balancer.rb', line 9

def ip
  @ip
end

#portObject

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