net.jini.discovery
Class IncomingUnicastResponse

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

public class IncomingUnicastResponse
extends java.lang.Object

This class encapsulates the details of unmarshaling an incoming unicast response.

See Also:
IncomingUnicastRequest

Field Summary
protected  java.lang.String[] groups
          The groups the lookup service was a member of, at the time discovery was performed.
protected  ServiceRegistrar registrar
          The registrar we have discovered.
 
Constructor Summary
IncomingUnicastResponse(java.io.InputStream str)
          Construct a new object, initialized by unmarshaling the contents of an input stream.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two responses are equal if they have the same registrar.
 java.lang.String[] getGroups()
          Return the set of groups of which the lookup service we discovered was a member when we discovered it.
 ServiceRegistrar getRegistrar()
          Return the lookup service registrar we have discovered.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registrar

protected ServiceRegistrar registrar
The registrar we have discovered.

groups

protected java.lang.String[] groups
The groups the lookup service was a member of, at the time discovery was performed. This may be out of date.
Constructor Detail

IncomingUnicastResponse

public IncomingUnicastResponse(java.io.InputStream str)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
Construct a new object, initialized by unmarshaling the contents of an input stream.
Parameters:
str - the stream from which to unmarshal the response
Throws:
java.io.IOException - an error occurred while unmarshaling the response
java.lang.ClassNotFoundException - some of the lookup service classes could not be found or downloaded
Method Detail

getRegistrar

public ServiceRegistrar getRegistrar()
Return the lookup service registrar we have discovered.

getGroups

public java.lang.String[] getGroups()
Return the set of groups of which the lookup service we discovered was a member when we discovered it. This set may be out of date.
See Also:
ServiceRegistrar.getGroups()

hashCode

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

equals

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


Copyright © 1999 Sun Microsystems, Inc. All rights reserved