org.jgroups.stack
public class GossipClient extends Object
Requires JDK >= 1.3 due to the use of Timer.
UNKNOWN: Make access to multiple GossipServer concurrent (1 thread/GossipServer).
Field Summary | |
---|---|
protected Log | log |
Constructor Summary | |
---|---|
GossipClient(IpAddress gossip_host, long expiry)
Creates the GossipClient | |
GossipClient(Vector gossip_hosts, long expiry)
Creates the GossipClient |
Method Summary | |
---|---|
void | addGossipServer(IpAddress gossip_host)
Adds a GossipServer to be accessed. |
Vector | getMembers(String group)
Returns all members of a given group |
static void | main(String[] args) |
void | register(String group, Address mbr)
Adds the member to the given group. |
void | stop() |
Parameters: gossip_host The address and port of the host on which the GossipServer is running expiry Interval (in msecs) for the refresher task
Parameters: gossip_hosts List of IpAddresses expiry Interval (in msecs) for the refresher task
Parameters: group The group name
Returns: Vector A list of Addresses
The entry will be registered with all GossipServers that GossipClient is configured to access