org.jgroups.protocols

Class SMACK

Implemented Interfaces:
AckMcastSenderWindow.RetransmitCommand

public class SMACK
extends Protocol
implements AckMcastSenderWindow.RetransmitCommand

Simple Multicast ACK protocol. A positive acknowledgment-based protocol for reliable delivery of multicast messages, which does not need any group membership service. Basically works as follows: Advantage of this protocol: no group membership necessary, fast.

Version:
$Revision: 1.7 $ todo: initial mcast to announce new member (for view change) todo: fix membershop bug: start a, b, kill b, restart b: b will be suspected by a

Author:
Bela Ban Aug 2002

Nested Class Summary

static class
SMACK.SmackHeader

Field Summary

Fields inherited from class org.jgroups.stack.Protocol

down_handler, down_prot, down_queue, down_thread, down_thread_prio, log, observer, props, stack, up_handler, up_prot, up_queue, up_thread, up_thread_prio

Constructor Summary

SMACK()

Method Summary

void
down(Event evt)
String
getName()
void
retransmit(long seqno, Message msg, Address dest)
Retranmit the given msg
boolean
setProperties(Properties props)
void
stop()
void
up(Event evt)

Methods inherited from class org.jgroups.stack.Protocol

destroy, down, getDownProtocol, getDownQueue, getName, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, passDown, passUp, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setProperties, setPropertiesInternal, setProtocolStack, setUpProtocol, start, startDownHandler, startUpHandler, stop, stopInternal, up

Constructor Details

SMACK

public SMACK()

Method Details

down

public void down(Event evt)
Overrides:
down in interface Protocol


getName

public String getName()
Overrides:
getName in interface Protocol


retransmit

public void retransmit(long seqno,
                       Message msg,
                       Address dest)
Retranmit the given msg
Specified by:
retransmit in interface AckMcastSenderWindow.RetransmitCommand

Parameters:
seqno - the sequence number associated with the message
msg - the msg to retransmit (it should be a copy!)
dest - the msg destination


setProperties

public boolean setProperties(Properties props)
Overrides:
setProperties in interface Protocol


stop

public void stop()
Overrides:
stop in interface Protocol


up

public void up(Event evt)
Overrides:
up in interface Protocol


Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.