|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.NameserverProxy
public final class NameserverProxy
Wraps the connection to the nameserver and the request sending.
| 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 |
|---|
public static NameserverProxy getNameserverProxy(String host,
int port)
If the proxy not exists - creates it, otherwise returns an existing proxy for the specified connection parameters.
host - nameserver host address.port - nameserver connection port.
public Socket registerServerChannel(com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ServerConnectionData connection)
connection - The connection to register.
public String toString()
toString in class Objectpublic String getLocalIP()
public String getRemoteIP()
public int getRemotePort()
public boolean isReachable()
This is a ping functionality. Returns false if the host is not reachable or any other error occurs.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||