Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $:.push('../gen-rb')
- require 'thrift'
- require 'nimbus'
- begin
- transport = Thrift::BufferedTransport.new(Thrift::Socket.new('nimbus.example.com', 6627))
- protocol = Thrift::BinaryProtocol.new(transport)
- client = Nimbus::Client.new(protocol)
- transport.open()
- summary = client.getClusterInfo()
- transport.close()
- rescue Thrift::Exception => tx
- print 'Thrift::Exception: ', tx.message, "\n"
- end
Add Comment
Please, Sign In to add comment