org.jgroups.debug

Class ProtocolTester


public class ProtocolTester
extends java.lang.Object

Generic class to test one or more protocol layers directly. Sets up a protocol stack consisting of the top layer (which is essentially given by the user and is the test harness), the specified protocol(s) and a bottom layer (which is automatically added), which sends all received messages immediately back up the stack (swapping sender and receiver address of the message).

Authors:
Bela Ban
March 23 2001

Field Summary

protected Log
log

Constructor Summary

ProtocolTester(String prot_spec, Protocol harness)

Method Summary

String
getProtocolSpec()
static void
main(String[] args)
void
stop()

Field Details

log

protected Log log

Constructor Details

ProtocolTester

public ProtocolTester(String prot_spec,
                      Protocol harness)
            throws Exception

Method Details

getProtocolSpec

public String getProtocolSpec()


main

public static void main(String[] args)


stop

public void stop()


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