com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Class NameserverProxy

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.NameserverProxy

public final class NameserverProxy
extends Object

Wraps the connection to the nameserver and the request sending.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Method Summary
 boolean equals(Object obj)
           
 String getLocalIP()
          Gets the local IP of the nameserver proxy.
static NameserverProxy getNameserverProxy(String host, int port)
          Gets the nameserver proxy for the specified host address and port.
 String getRemoteIP()
          Gets the IP of the nameserver to which this proxy tries to connect.
 int getRemotePort()
          Gets the port of the nameserver to which this proxy tries to connect.
 int hashCode()
           
 boolean isReachable()
          Determines if the host on which the nameserver should be located is reachable.
 Socket registerServerChannel(com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ServerConnectionData connection)
          Registers a server channel.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getNameserverProxy

public static NameserverProxy getNameserverProxy(String host,
                                                 int port)
Gets the nameserver proxy for the specified host address and port.

If the proxy not exists - creates it, otherwise returns an existing proxy for the specified connection parameters.

Parameters:
host - nameserver host address.
port - nameserver connection port.
Returns:
the nameserver proxy for the specified host address and port.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

registerServerChannel

public Socket registerServerChannel(com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ServerConnectionData connection)
Registers a server channel. Returns the socket which must be used by the server connection to communicate with the nameserver.

Parameters:
connection - The connection to register.
Returns:
The communication socket which must be used by the server connection to receive new client requests. The socket must be closed by the caller.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

toString

public String toString()

Overrides:
toString in class Object
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getLocalIP

public String getLocalIP()
Gets the local IP of the nameserver proxy.

Returns:
The local IP of the nameserver proxy.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getRemoteIP

public String getRemoteIP()
Gets the IP of the nameserver to which this proxy tries to connect.

Returns:
The IP of the nameserver to which this proxy tries to connect.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getRemotePort

public int getRemotePort()
Gets the port of the nameserver to which this proxy tries to connect.

Returns:
The port of the nameserver to which this proxy tries to connect.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

isReachable

public boolean isReachable()
Determines if the host on which the nameserver should be located is reachable.

This is a ping functionality. Returns false if the host is not reachable or any other error occurs.

Returns:
True if the host on which the nameserver is located is reachable.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

hashCode

public int hashCode()
Overrides:
hashCode in class Object
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.