org.activemq.transport.multicast
Class MulticastTester
java.lang.Object
org.activemq.transport.multicast.MulticastTester
- All Implemented Interfaces:
- PacketListener
- public class MulticastTester
- extends java.lang.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 java.lang.String DEFAULT_DISCOVERY_URI
- See Also:
- Constant Field Values
MulticastTester
public MulticastTester()
main
public static void main(java.lang.String[] args)
throws java.net.URISyntaxException,
javax.jms.JMSException,
java.lang.InterruptedException
- Throws:
java.net.URISyntaxException
javax.jms.JMSException
java.lang.InterruptedException
start
public void start()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
stop
public void stop()
throws javax.jms.JMSException
- Throws:
javax.jms.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 java.lang.String getLocalId()
- Returns:
- Returns the localId.
setLocalId
public void setLocalId(java.lang.String localId)
- Parameters:
localId
- The localId to set.
getUri
public java.net.URI getUri()
- Returns:
- Returns the uri.
setUri
public void setUri(java.net.URI uri)
- Parameters:
uri
- The uri to set.
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.