GigaSpaces XAP 9.7.2 API

net.jini.discovery
Class IncomingUnicastResponse

java.lang.Object
  extended by net.jini.discovery.IncomingUnicastResponse

public class IncomingUnicastResponse
extends Object

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

Author:
Sun Microsystems, Inc.
See Also:
IncomingUnicastRequest

Field Summary
protected  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(InputStream str)
          Construct a new object, initialized by unmarshaling the contents of an input stream.
 
Method Summary
 boolean equals(Object o)
          Two responses are equal if they have the same registrar.
 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 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(InputStream str)
                        throws IOException,
                               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:
IOException - an error occurred while unmarshaling the response
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.

Returns:
the lookup service registrar we have discovered

getGroups

public 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.

Returns:
the set of groups to which the lookup service was a member when we discovered it
See Also:
ServiceRegistrar.getGroups()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Two responses are equal if they have the same registrar.

Overrides:
equals in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.