net.jini.discovery
Class IncomingMulticastAnnouncement

java.lang.Object
  |
  +--net.jini.discovery.IncomingMulticastAnnouncement

public class IncomingMulticastAnnouncement
extends java.lang.Object

Encapsulate the details of unmarshaling an incoming multicast announcement packet.

See Also:
OutgoingMulticastAnnouncement

Field Summary
protected  java.lang.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 Summary
IncomingMulticastAnnouncement(java.net.DatagramPacket p)
          Construct a new object, initialized by unmarshaling the contents of a multicast announcement packet.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two announcements are equal if they have the same service id.
 java.lang.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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceID

protected ServiceID serviceID
The ServiceID that has been announced.

locator

protected LookupLocator locator
The LookupLocator that has been announced.

groups

protected java.lang.String[] groups
The groups of which the announcing lookup service is a member.

protoVersion

protected final int protoVersion
Current version of the multicast announcement protocol.
Constructor Detail

IncomingMulticastAnnouncement

public IncomingMulticastAnnouncement(java.net.DatagramPacket p)
                              throws java.io.IOException
Construct a new object, initialized by unmarshaling the contents of a multicast announcement packet.
Parameters:
p - the packet to unmarshal
Throws:
java.io.IOException - a problem occurred in unmarshaling the packet
Method Detail

getServiceID

public ServiceID getServiceID()
Return the ServiceID of the announcing lookup service.

getLocator

public LookupLocator getLocator()
Return a LookupLocator for performing unicast discovery of the announcing lookup service.

getGroups

public java.lang.String[] getGroups()
Return the groups of which the announcing lookup service is a member.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Two announcements are equal if they have the same service id.
Overrides:
equals in class java.lang.Object


Copyright © 1999 Sun Microsystems, Inc. All rights reserved