org.activemq.transport.multicast
Class MulticastTester

java.lang.Object
  extended byorg.activemq.transport.multicast.MulticastTester
All Implemented Interfaces:
PacketListener

public class MulticastTester
extends Object
implements PacketListener

An agent used to discover other instances of a service

Version:
$Revision: 1.1.1.1 $

Field Summary
static String DEFAULT_DISCOVERY_URI
           
 
Constructor Summary
MulticastTester()
           
 
Method Summary
 void consume(Packet packet)
          Consume a Packet
 String getLocalId()
           
 URI getUri()
           
static void main(String[] args)
           
 void setLocalId(String localId)
           
 void setUri(URI uri)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DISCOVERY_URI

public static final String DEFAULT_DISCOVERY_URI
See Also:
Constant Field Values
Constructor Detail

MulticastTester

public MulticastTester()
Method Detail

main

public static void main(String[] args)
                 throws URISyntaxException,
                        JMSException,
                        InterruptedException
Throws:
URISyntaxException
JMSException
InterruptedException

start

public void start()
           throws JMSException
Throws:
JMSException

stop

public void stop()
          throws JMSException
Throws:
JMSException

consume

public void consume(Packet packet)
Description copied from interface: PacketListener
Consume a Packet

Specified by:
consume in interface PacketListener
Parameters:
packet -

getLocalId

public String getLocalId()
Returns:
Returns the localId.

setLocalId

public void setLocalId(String localId)
Parameters:
localId - The localId to set.

getUri

public URI getUri()
Returns:
Returns the uri.

setUri

public void setUri(URI uri)
Parameters:
uri - The uri to set.


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.