Package com.sun.jini.discovery
Class UnicastResponse
java.lang.Object
com.sun.jini.discovery.UnicastResponse
Class representing the values obtained as the result of unicast discovery.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnicastResponse(String host, int port, String[] groups, ServiceRegistrar registrar) Creates newUnicastResponseinstance containing the given values.UnicastResponse(String host, int port, String[] groups, ServiceRegistrar registrar, MarshalledObject marshalledObjectRegistrar, byte[] registrarBytes) -
Method Summary
-
Field Details
-
host
The lookup service host. -
port
protected int portThe lookup service listen port. -
groups
The lookup service member groups. -
registrar
The lookup service proxy.
-
-
Constructor Details
-
UnicastResponse
Creates newUnicastResponseinstance containing the given values. Thegroupsarray is copied; anullvalue is considered equivalent to an empty array.- Parameters:
host- the lookup service hostport- the lookup service listen portgroups- the lookup service member groupsregistrar- the lookup service proxy- Throws:
NullPointerException- ifhostorregistrarisnull, or ifgroupscontainsnullIllegalArgumentException- ifportis out of range
-
UnicastResponse
public UnicastResponse(String host, int port, String[] groups, ServiceRegistrar registrar, MarshalledObject marshalledObjectRegistrar, byte[] registrarBytes)
-
-
Method Details
-
getRegistrarBytes
public byte[] getRegistrarBytes() -
getMarshalledObjectRegistrar
-
getHost
Returns the lookup service host name.- Returns:
- the lookup service host name
-
getPort
public int getPort()Returns the lookup service listen port.- Returns:
- the lookup service listen port
-
getGroups
Returns the member groups of the lookup service.- Returns:
- the member groups of the lookup service
-
getRegistrar
Returns the lookup service proxy.- Returns:
- the lookup service proxy
-
toString
Returns a string representation of this response.
-