ch.nix.ert.message
Class Node
java.lang.Object
ch.nix.ert.message.Node
- All Implemented Interfaces:
- java.io.Serializable
- public class Node
- extends java.lang.Object
- implements java.io.Serializable
TODO Edit this text for a better description
Represents the nodes (in this implementation IP/Port)
- Author:
- michi
- See Also:
- Serialized Form
Constructor Summary |
Node()
Constructs a node with localhost as ip, and a standard port as port... |
Node(java.net.InetAddress ip,
int port)
|
Node(int port)
Constructs a node with localhost as ip, and a port as supplied |
Node(java.lang.String ip,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Node
public Node(java.lang.String ip,
int port)
Node
public Node(java.net.InetAddress ip,
int port)
Node
public Node(int port)
- Constructs a node with localhost as ip, and a port as supplied
Node
public Node()
- Constructs a node with localhost as ip, and a standard port as port...
(15000)
isLocalhost
public boolean isLocalhost()
- Returns:
- true: Node is on localhost
false: Node is on a remote host
getInetSocketAddress
public java.net.InetSocketAddress getInetSocketAddress()
getIp
public java.lang.String getIp()
getPort
public int getPort()
toString
public java.lang.String toString()
Copyright © 2004 Michael Kussmaul - Revision: 183 - Date: 2004-11-16T15:42:13.763853Z