|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateless.Node
public class Node
A communication endpoint.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
Node()
Creates a new communication node with the default host name and port. |
protected |
Node(String host,
int port)
Creates a new communication node with the given host name and port. |
| Method Summary | |
|---|---|
protected String |
getConnectionUrl(Class<?> iface)
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 host)
Sets the receiver's host name to the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
public static final String DEFAULT_HOST
| Constructor Detail |
|---|
protected Node(String host,
int port)
host - The host name.port - The port.protected Node()
| Method Detail |
|---|
public void setHost(String host)
host - The host name.public String getHost()
public int getPort()
public NodeId getId()
protected String getConnectionUrl(Class<?> iface)
iface - The interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||