org.jgroups.protocols

Class VIEW_SYNC

public class VIEW_SYNC extends Protocol

Periodically sends the view to the group. When a view is received which is greater than the current view, we install it. Otherwise we simply discard it. This is used to solve the problem for unreliable view dissemination outlined in JGroups/doc/ReliableViewInstallation.txt. This protocol is supposed to be just below GMS.

Version: $Id: VIEW_SYNC.java,v 1.5 2005/12/16 16:18:16 belaban Exp $

Author: Bela Ban

Nested Class Summary
static classVIEW_SYNC.ViewSyncHeader
Method Summary
voiddown(Event evt)
longgetAverageSendInterval()
StringgetName()
intgetNumViewsAdjusted()
intgetNumViewsSent()
voidresetStats()
voidsendViewRequest()
Sends a VIEW_SYNC_REQ to all members, every member replies with a VIEW multicast
voidsetAverageSendInterval(long gossip_interval)
booleansetProperties(Properties props)
voidstart()
voidstop()
voidup(Event evt)

Method Detail

down

public void down(Event evt)

getAverageSendInterval

public long getAverageSendInterval()

getName

public String getName()

getNumViewsAdjusted

public int getNumViewsAdjusted()

getNumViewsSent

public int getNumViewsSent()

resetStats

public void resetStats()

sendViewRequest

public void sendViewRequest()
Sends a VIEW_SYNC_REQ to all members, every member replies with a VIEW multicast

setAverageSendInterval

public void setAverageSendInterval(long gossip_interval)

setProperties

public boolean setProperties(Properties props)

start

public void start()

stop

public void stop()

up

public void up(Event evt)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.