org.kaariboga.core
Class KaaribogaAddress

java.lang.Object
  |
  +--org.kaariboga.core.KaaribogaAddress
All Implemented Interfaces:
java.io.Serializable

public final class KaaribogaAddress
extends java.lang.Object
implements java.io.Serializable

Defines an address for agents. The address can be used to contact agents on other servers around the world.

See Also:
Serialized Form

Field Summary
 java.net.InetAddress host
          The host where the agent exists.
 java.lang.String name
          The name of the agent.
 int port
          The port on which the server is listening.
 
Constructor Summary
KaaribogaAddress(java.net.InetAddress host, int port, java.lang.String name)
          Constructs a new address.
KaaribogaAddress(java.lang.String name)
          Constructs a new address for use on the local base server only.
 
Method Summary
 java.lang.String toString()
          Definition for String conversion
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

host

public java.net.InetAddress host
The host where the agent exists.

port

public int port
The port on which the server is listening.

name

public java.lang.String name
The name of the agent. This in unique around the whole world.
Constructor Detail

KaaribogaAddress

public KaaribogaAddress(java.net.InetAddress host,
                        int port,
                        java.lang.String name)
Constructs a new address.
Parameters:
host - The host where the agent exists.
port - The port on which the server is listening.
name - The name of the agent.

KaaribogaAddress

public KaaribogaAddress(java.lang.String name)
Constructs a new address for use on the local base server only. So hostname and port are not required.
Parameters:
name - The name of the agent.
Method Detail

toString

public java.lang.String toString()
Definition for String conversion
Overrides:
toString in class java.lang.Object
Returns:
A String that contains hostname, port and name of the agent.