jtr.remote.test
Class NodeInfo
java.lang.Object
jtr.config.remote.Node
jtr.remote.test.NodeInfo
- All Implemented Interfaces:
- java.io.Serializable
public class NodeInfo
- extends Node
- implements java.io.Serializable
A NodeInfo
instance represents a node member of the JTR network.
- Since:
- 4.0
- Version:
- 5.0
- Author:
- frusso
- See Also:
- Serialized Form
Constructor Summary |
NodeInfo(java.lang.String serviceName)
|
NodeInfo(java.lang.String host,
int port,
java.lang.String serviceName)
Creates a new instance of NodeInfo |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NodeInfo
public NodeInfo(java.lang.String host,
int port,
java.lang.String serviceName)
- Creates a new instance of NodeInfo
- Parameters:
host
- port
- serviceName
-
NodeInfo
public NodeInfo(java.lang.String serviceName)
newLocalNodeInfo
public static NodeInfo newLocalNodeInfo()
getServiceName
public java.lang.String getServiceName()
- Returns the service name (whatever the service is).
- Returns:
- The service name
toString
public java.lang.String toString()
- Overrides:
toString
in class Node
toURL
public java.lang.String toURL()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object