Class Rinda::RingFinger
In: lib/rinda/ring.rb
Parent: Object

RingFinger is used by RingServer clients to discover the RingServer‘s TupleSpace. Typically, all a client needs to do is call RingFinger.primary to retrieve the remote TupleSpace, which it can then begin using.

Methods

each   finger   lookup_ring   lookup_ring_any   new   primary   to_a   to_a  

Attributes

broadcast_list  [RW]  The list of addresses where RingFinger will send query packets.
port  [RW]  The port that RingFinger will send query packets to.
primary  [RW]  Contain the first advertised TupleSpace after lookup_ring_any is called.

Public Class methods

Creates a singleton RingFinger and looks for a RingServer. Returns the created RingFinger.

Creates a new RingFinger that will look for RingServers at port on the addresses in broadcast_list.

Returns the first advertised TupleSpace.

Contains all discoverd TupleSpaces except for the primary.

Public Instance methods

Iterates over all discovered TupleSpaces starting with the primary.

Looks up RingServers waiting timeout seconds. RingServers will be given block as a callback, which will be called with the remote TupleSpace.

Returns the first found remote TupleSpace. Any further recovered TupleSpaces can be found by calling to_a.

Contains all discovered TupleSpaces except for the primary.

[Validate]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.