JTR 5.0 API Documentation

jtr.remote.test
Class NodeInfo

java.lang.Object
  extended by jtr.config.remote.Node
      extended by 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
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getServiceName()
          Returns the service name (whatever the service is).
 int hashCode()
           
static NodeInfo newLocalNodeInfo()
           
 java.lang.String toString()
           
 java.lang.String toURL()
           
 
Methods inherited from class jtr.config.remote.Node
getHost, getPort, setHost, setPort
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

The JTR Project is licensed under GPL version 2