public class IncomingMulticastAnnouncement extends Object
OutgoingMulticastAnnouncement
Modifier and Type | Field and Description |
---|---|
protected String[] |
groups
The groups of which the announcing lookup service is a member.
|
protected LookupLocator |
locator
The LookupLocator that has been announced.
|
protected int |
protoVersion
Current version of the multicast announcement protocol.
|
protected ServiceID |
serviceID
The ServiceID that has been announced.
|
Constructor and Description |
---|
IncomingMulticastAnnouncement(DatagramPacket p)
Construct a new object, initialized by unmarshaling the
contents of a multicast announcement packet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Two announcements are equal if they have the same service ID.
|
String[] |
getGroups()
Return the groups of which the announcing lookup service is a
member.
|
LookupLocator |
getLocator()
Return a LookupLocator for performing unicast discovery of the
announcing lookup service.
|
ServiceID |
getServiceID()
Return the ServiceID of the announcing lookup service.
|
int |
hashCode() |
protected ServiceID serviceID
protected LookupLocator locator
protected String[] groups
protected final int protoVersion
public IncomingMulticastAnnouncement(DatagramPacket p) throws IOException
p
- the packet to unmarshalIOException
- a problem occurred in unmarshaling the
packetpublic ServiceID getServiceID()
public LookupLocator getLocator()
LookupLocator
for performing unicast
discovery of the announcing lookup servicepublic String[] getGroups()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.