A RingServer allows a Rinda::TupleSpace to be located via UDP broadcasts. Service location uses the following steps:
-
A RingServer begins listening on the broadcast UDP address.
-
A RingFinger sends a UDP packet containing the DRb URI where it will listen for a reply.
-
The RingServer receives the UDP packet and connects back to the provided DRb URI with the DRb service.
Methods
- D
- N
- R
- W
Included Modules
Class Public methods
new(ts, port=Ring_PORT)
Link
Advertises ts
on the UDP broadcast address at
port
.
Instance Public methods
do_reply()
Link
Pulls lookup tuples out of the TupleSpace and sends their DRb object the address of the local TupleSpace.
do_write(msg)
Link
Extracts the response URI from msg
and adds it to TupleSpace where it will be
picked up by reply_service
for notification.
reply_service()
Link
Creates a thread that notifies waiting clients from the TupleSpace.