Class: Roma::Client::Proxy::Daemon
- Inherits:
-
Object
- Object
- Roma::Client::Proxy::Daemon
- Defined in:
- lib/roma/client/proxy/daemon.rb
Overview
class Conpool
Constant Summary collapse
- @@rttable =
nil
Instance Attribute Summary collapse
-
#daemon ⇒ Object
readonly
Returns the value of attribute daemon.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv = nil) ⇒ Daemon
constructor
A new instance of Daemon.
- #initialize_logger ⇒ Object
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#daemon ⇒ Object (readonly)
Returns the value of attribute daemon.
131 132 133 |
# File 'lib/roma/client/proxy/daemon.rb', line 131 def daemon @daemon end |
Class Method Details
.rttable ⇒ Object
135 136 137 |
# File 'lib/roma/client/proxy/daemon.rb', line 135 def self.rttable @@rttable end |
Instance Method Details
#initialize_logger ⇒ Object
146 147 148 149 150 |
# File 'lib/roma/client/proxy/daemon.rb', line 146 def initialize_logger Roma::Logging::RLogger.create_singleton_instance(@log_path, @log_age, @log_size) end |
#start ⇒ Object
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/roma/client/proxy/daemon.rb', line 152 def start timer loop do begin EventMachine::run do EventMachine.start_server('0.0.0.0', @port, ClientHandler) EventMachine.start_unix_domain_server("/tmp/#{@uds_name}", ClientHandler) end rescue =>e $log.error("#{e} #{$@}") retry end end end |