资 源 简 介
The current implementation of the gossip service is selecting the member to gossip with purely random. We are planning to extends this implementation so one can choose how the gossiping is done. We will provide a implementation based on the network-friendly version proposed by Serby et al.1.
Testing
The current implementation can be downloaded on the right side of this page (java-gossip-0.1.zip). You can simply edit the gossip.conf to your local configuration; copy the folder and start two gossip clients who are talking to eachother. You can add as many clients as you want. You can run multiple gossip clients per host by specifying the same IP address but a different port.
API
You can also download the source of this implementation when you want to integrate the gossip service into your application. Look at the com.google.code.gossip.examples.GossipExample class for a example of how to use the gossip service.
A code exampl