Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (13 sloc) 0.371 kB
#!/usr/bin/env ruby
require 'drb'
require File.join(File.dirname(__FILE__), 'rpc_exporter')
supervisor_uri = ARGV[0]
number = ARGV[1] ? ARGV[1].to_i : 3
DRb.start_service
supervisor = DRbObject.new nil, supervisor_uri
number.times do
rpc = RPCExporter.new(supervisor)
DRb.start_service nil, rpc
puts "Created Paxos replica at: #{DRb.uri}"
end
DRb.thread.join
Jump to Line
Something went wrong with that request. Please try again.