org.jgroups.protocols

Class LOOPBACK


public class LOOPBACK
extends Protocol

Makes copies of outgoing messages, swaps sender and receiver and sends the message back up the stack.

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

LOOPBACK()

Method Summary

void
down(Event evt)
Caller by the layer above this layer.
String
getName()
void
init()
void
start()
String
toString()

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

LOOPBACK

public LOOPBACK()

Method Details

down

public void down(Event evt)
Caller by the layer above this layer. Usually we just put this Message into the send queue and let one or more worker threads handle it. A worker thread then removes the Message from the send queue, performs a conversion and adds the modified Message to the send queue of the layer below it, by calling Down).
Overrides:
down in interface Protocol

getName

public String getName()
Overrides:
getName in interface Protocol

init

public void init()
            throws Exception
Overrides:
init in interface Protocol

start

public void start()
            throws Exception
Overrides:
start in interface Protocol

toString

public String toString()

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