Class ActiveMQPacketParser
- java.lang.Object
-
- org.apache.qpid.jms.provider.discovery.multicast.parsers.ActiveMQPacketParser
-
- All Implemented Interfaces:
PacketParser
public class ActiveMQPacketParser extends Object implements PacketParser
Parser instance for ActiveMQ multicast discovery processing.
-
-
Constructor Summary
Constructors Constructor Description ActiveMQPacketParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroup()DiscoveryEventprocessPacket(byte[] packet, int offset, int length)Process in incoming event packet and create a DiscoveryEvent from the data.voidsetGroup(String group)Sets the multicast group that the parent agent is assigned to.
-
-
-
Method Detail
-
getGroup
public String getGroup()
- Specified by:
getGroupin interfacePacketParser- Returns:
- the multicast group assignment for this parser.
-
setGroup
public void setGroup(String group)
Description copied from interface:PacketParserSets the multicast group that the parent agent is assigned to. This can be used in some cases to parse discovery messages.- Specified by:
setGroupin interfacePacketParser- Parameters:
group- the multicast group that this parser's parent agent resides in./
-
processPacket
public DiscoveryEvent processPacket(byte[] packet, int offset, int length)
Description copied from interface:PacketParserProcess in incoming event packet and create a DiscoveryEvent from the data.- Specified by:
processPacketin interfacePacketParser- Parameters:
packet- the new data packet to process.offset- the offset into the data buffer to start at.length- the length of the data packet contained in the buffer.- Returns:
- a new DiscoveryEvent created from pocessing the incoming data.
-
-