Class: RseProxy::Server
- Inherits:
-
Object
- Object
- RseProxy::Server
- Defined in:
- lib/rse.rb
Instance Method Summary collapse
-
#initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home', jobfilter: nil) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home', jobfilter: nil) ⇒ Server
Returns a new instance of Server.
216 217 218 219 220 221 222 223 |
# File 'lib/rse.rb', line 216 def initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home', jobfilter: nil) @host, @port, @servers, @log = host, port, servers, log @spshost = spshost @jobfilter = jobfilter end |
Instance Method Details
#start ⇒ Object
225 226 227 228 229 230 231 |
# File 'lib/rse.rb', line 225 def start() DRb.start_service "druby://#{@host}:#{@port}", PassThru.new(@servers, log: @log, jobfilter: @jobfilter) DRb.thread.join end |