org.jgroups.protocols

Class DUMMY_TP


public class DUMMY_TP
extends Protocol

Dummy transport, returns a fake local address and responds to CONNECT with CONNECT_OK. Compared to LOOPBACK, this discards everything
Version:
$Id: DUMMY_TP.java,v 1.1 2005/04/14 14:39:32 belaban Exp $
Author:
Bela Ban

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, stats, trace, up_handler, up_prot, up_queue, up_thread, up_thread_prio, warn

Constructor Summary

DUMMY_TP()

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, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getName, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, isTrace, isWarn, passDown, passUp, printStats, providedDownServices, providedUpServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, resetStats, setDownProtocol, setObserver, setProperties, setPropertiesInternal, setProtocolStack, setTrace, setUpProtocol, setWarn, start, startDownHandler, startUpHandler, statsEnabled, stop, stopInternal, up, upThreadEnabled

Constructor Details

DUMMY_TP

public DUMMY_TP()

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) 1998-2005 Bela Ban. All Rights Reserved.