org.activemq.transport.multicast
Class MulticastTester
java.lang.Object
org.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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DISCOVERY_URI
public static final String DEFAULT_DISCOVERY_URI
- See Also:
- Constant Field Values
MulticastTester
public MulticastTester()
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.