public class Node extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOST
The default host name for the server and to which the client connects.
|
static int |
DEFAULT_PORT
The default port on which the server listens and to which the client connects.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Node()
Creates a new communication node with the default host name and port.
|
protected |
Node(String inHost,
int inPort)
Creates a new communication node with the given host name and port.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getConnectionUrl(Class<?> inInterfaceClazz)
Returns the connection URL for the given service interface.
|
String |
getHost()
Returns the receiver's host name.
|
NodeId |
getId()
Returns the receiver's node ID.
|
int |
getPort()
Returns the receiver's port.
|
void |
setHost(String inHost)
Sets the receiver's host name to the given one.
|
void |
setPort(int inPort)
Sets the port value.
|
public static final int DEFAULT_PORT
public static final String DEFAULT_HOST
protected Node(String inHost, int inPort)
inHost - a String valueinPort - an int valueprotected Node()
public void setHost(String inHost)
inHost - a String valuepublic String getHost()
String valuepublic int getPort()
int valuepublic void setPort(int inPort)
inPort - an int valuepublic NodeId getId()
NodeId valueCopyright © 2015. All Rights Reserved.