public class UnicastResponse extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected String[] | groupsThe lookup service member groups. | 
| protected String | hostThe lookup service host. | 
| protected int | portThe lookup service listen port. | 
| protected ServiceRegistrar | registrarThe lookup service proxy. | 
| Constructor and Description | 
|---|
| UnicastResponse(String host,
               int port,
               String[] groups,
               ServiceRegistrar registrar)Creates new  UnicastResponseinstance containing the given values. | 
| UnicastResponse(String host,
               int port,
               String[] groups,
               ServiceRegistrar registrar,
               MarshalledObject marshalledObjectRegistrar,
               byte[] registrarBytes) | 
| Modifier and Type | Method and Description | 
|---|---|
| String[] | getGroups()Returns the member groups of the lookup service. | 
| String | getHost()Returns the lookup service host name. | 
| MarshalledObject | getMarshalledObjectRegistrar() | 
| int | getPort()Returns the lookup service listen port. | 
| ServiceRegistrar | getRegistrar()Returns the lookup service proxy. | 
| byte[] | getRegistrarBytes() | 
| String | toString()Returns a string representation of this response. | 
protected String host
protected int port
protected String[] groups
protected ServiceRegistrar registrar
public UnicastResponse(String host, int port, String[] groups, ServiceRegistrar registrar)
UnicastResponse instance containing the given values.  The
 groups array is copied; a null value is considered equivalent to an
 empty array.host - the lookup service hostport - the lookup service listen portgroups - the lookup service member groupsregistrar - the lookup service proxyNullPointerException - if host or registrar is
                                  null, or if groups contains
                                  nullIllegalArgumentException - if port is out of rangepublic UnicastResponse(String host, int port, String[] groups, ServiceRegistrar registrar, MarshalledObject marshalledObjectRegistrar, byte[] registrarBytes)
public byte[] getRegistrarBytes()
public MarshalledObject getMarshalledObjectRegistrar()
public String getHost()
public int getPort()
public String[] getGroups()
public ServiceRegistrar getRegistrar()
Copyright © GigaSpaces.