You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2011/03/24 09:08:58 UTC

[Cassandra Wiki] Update of "ArchitectureGossip" by JingguoYao

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "ArchitectureGossip" page has been changed by JingguoYao.
The comment on this change is: Remove unnecessary wiki disabling flag.
http://wiki.apache.org/cassandra/ArchitectureGossip?action=diff&rev1=4&rev2=5

--------------------------------------------------

  
  == API ==
  
- Information to gossip is wrapped in an !ApplicationState object, which is essentially a key/value pair.  (See "Data Structures" below for more detail.)  The gossiper propagates these to other nodes, where interested classes subscribe to changes via the !IEndPointStateChangeSubscriber interface.  This provides onJoin, onAlive, and onDead methods indicating the obvious things, and onChange for !ApplicationState changes.  onChange is called once for each !ApplicationState.  There are two non-obvious properties to this:
+ Information to gossip is wrapped in an !ApplicationState object, which is essentially a key/value pair.  (See "Data Structures" below for more detail.)  The gossiper propagates these to other nodes, where interested classes subscribe to changes via the IEndPointStateChangeSubscriber interface.  This provides onJoin, onAlive, and onDead methods indicating the obvious things, and onChange for !ApplicationState changes.  onChange is called once for each !ApplicationState.  There are two non-obvious properties to this:
   1. If a node makes multiple changes to a given !ApplicationState key, other nodes are guaranteed to see the most recent one but not intermediate ones
   1. There is no provision for deleting an !ApplicationState entirely