Rinda and notifications example?

Discussion in 'Ruby' started by Alexander Lamb, Oct 26, 2005.

  1. Hello,

    I really tried to find some examples on Rinda. There is exactly one =20
    page (727) in the programming Ruby book. So here is what I understood:

    1.
    Rinda is based on top of DRb

    2.
    With DRb, you can have clients notified of changes using observers (a =20=

    class mixin I think)

    3.
    Rinda allows you to have a server of tuples.

    4.
    Rinda needs one Rinda service process, one tuplespace process and =20
    then as many client processes as you want to connect to a tuplespace

    5.
    It seems rather simple to add tuples to the tuplespace then retrieve =20
    them using patterns

    6.
    It "looks like" you can get notified, but how?

    7.
    It "looks like" you can set durations (validity) to tuples, but how?

    What I miss here is:

    An example of a tuplespace program (client and server) where:

    - you can register (or unregister) as observer for a given pattern
    - add or delete a tuple
    - get notified of an addition or a deletion (either from timestamp =20
    validity or because it has been deleted)

    The idea is to have a tuplespace of all the status of the real time =20
    monitoring we do of our systems. It can be simple pings, more =20
    complexe HTTP/Get, etc... all this will be consolidated and we should =20=

    be able to view "all the last situations on machine A" or "all the =20
    probes giving an error", etc...

    Many thanks,

    Alex
    --
    Alexander Lamb
    Service d'Informatique M=E9dicale
    H=F4pitaux Universitaires de Gen=E8ve

    +41 22 372 88 62
    +41 79 420 79 73
     
    Alexander Lamb, Oct 26, 2005
    #1
    1. Advertisements

  2. Eric Hodel

    Eric Hodel Guest

    On Oct 26, 2005, at 1:16 AM, Alexander Lamb wrote:

    > Hello,
    >
    > I really tried to find some examples on Rinda. There is exactly one
    > page (727) in the programming Ruby book. So here is what I understood:
    >
    > 1.
    > Rinda is based on top of DRb


    Yes.

    > 2.
    > With DRb, you can have clients notified of changes using observers
    > (a class mixin I think)


    It is no different than regular Ruby.

    > 3.
    > Rinda allows you to have a server of tuples.


    Yes

    > 4.
    > Rinda needs one Rinda service process, one tuplespace process and
    > then as many client processes as you want to connect to a tuplespace


    You only need a TupleSpace. Rinda::RingFinder just makes things
    convenient, but the two don't have anything to do with each other.

    > 5.
    > It seems rather simple to add tuples to the tuplespace then
    > retrieve them using patterns


    Yes.

    > 6.
    > It "looks like" you can get notified, but how?


    [ruby-talk:159065]

    > 7.
    > It "looks like" you can set durations (validity) to tuples, but how?


    Second argument to write/take/read/notify is either a duration or a
    Renewer.

    > What I miss here is:
    >
    > An example of a tuplespace program (client and server) where:
    >
    > - you can register (or unregister) as observer for a given pattern
    > - add or delete a tuple
    > - get notified of an addition or a deletion (either from timestamp
    > validity or because it has been deleted)


    There are some examples in sample/drb:

    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/sample/drb/

    > The idea is to have a tuplespace of all the status of the real time
    > monitoring we do of our systems. It can be simple pings, more
    > complexe HTTP/Get, etc... all this will be consolidated and we
    > should be able to view "all the last situations on machine A" or
    > "all the probes giving an error", etc...


    --
    Eric Hodel - - http://segment7.net
    FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
     
    Eric Hodel, Oct 26, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Reji
    Replies:
    6
    Views:
    454
    Ben Pope
    Mar 24, 2006
  2. Spam Catcher
    Replies:
    2
    Views:
    521
    bruce barker
    Nov 30, 2007
  3. Calum Shaw-Mackay

    Druby , Rinda and Jini language bindings

    Calum Shaw-Mackay, Mar 1, 2005, in forum: Ruby
    Replies:
    0
    Views:
    172
    Calum Shaw-Mackay
    Mar 1, 2005
  4. Xaea Alvein

    rinda and ruby numbers

    Xaea Alvein, Aug 28, 2006, in forum: Ruby
    Replies:
    3
    Views:
    206
    Eric Hodel
    Aug 31, 2006
  5. Joe Hosteny iv
    Replies:
    0
    Views:
    210
    Joe Hosteny iv
    Oct 9, 2006
  6. M. Edward (Ed) Borasky
    Replies:
    2
    Views:
    222
    M. Edward (Ed) Borasky
    Apr 24, 2007
  7. Hema Latha
    Replies:
    5
    Views:
    356
    Eleanor McHugh
    Oct 7, 2007
  8. Mike Ho

    Rinda and Tuple Spaces

    Mike Ho, Nov 16, 2007, in forum: Ruby
    Replies:
    2
    Views:
    176
    Mike Ho
    Nov 19, 2007
Loading...