kaos.core.service.transport.tcp
Class TCPLocator

java.lang.Object
  extended by AcrLocator
      extended by kaos.core.service.util.DefaultKAoSLocator
          extended by kaos.core.service.transport.tcp.TCPLocator
All Implemented Interfaces:
java.io.Serializable, KAoSLocator

public class TCPLocator
extends DefaultKAoSLocator
implements java.io.Serializable

Defines the operations that can be invoked on a Locator containing agent's properties used in Cougaar communication to register/lookup agents in the Cougaar registry.


Field Summary
static java.lang.String AGENT_HOST
           
static java.lang.String AGENT_NAME
           
static java.lang.String AGENT_PORT
           
static java.lang.String UADD
           
 
Fields inherited from interface kaos.core.KAoSLocator
NAME_KEY
 
Constructor Summary
TCPLocator()
           
 
Method Summary
 java.lang.String getHost()
           
 java.lang.String getName()
          Obtain the AGENT_NAME property of a TcpLocator.
 java.lang.String getPort()
          Obtain the AGENT_PORT property.
 java.lang.String getUADD()
          Obtain the UADD property used to uniquely identify a VoyagerLocator.
 void setHost(java.lang.String host)
          Set the AGENT_HOST property to specify the host on which a tcp nameserver runs
 void setName(java.lang.String name)
          Set the AGENT_NAME property used to bind a TcpLocator with a _TcpReceiverBaseImpl object.
 void setPort(java.lang.String port)
          Set the AGENT_PORT property to specify the port on which to talk to a tcp nameserver
 void setUADD(java.lang.String uadd)
          Set the UADD property used to uniquely identify a TcpLocator.
 java.lang.String toString()
          Obtain the AGENT_HOST property.
 
Methods inherited from class kaos.core.service.util.DefaultKAoSLocator
getTransportName, getTransportType, setTransportName, setTransportType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UADD

public static final java.lang.String UADD
See Also:
Constant Field Values

AGENT_NAME

public static final java.lang.String AGENT_NAME
See Also:
Constant Field Values

AGENT_HOST

public static final java.lang.String AGENT_HOST
See Also:
Constant Field Values

AGENT_PORT

public static final java.lang.String AGENT_PORT
See Also:
Constant Field Values
Constructor Detail

TCPLocator

public TCPLocator()
Method Detail

setUADD

public void setUADD(java.lang.String uadd)
Set the UADD property used to uniquely identify a TcpLocator.

Parameters:
uadd - the unique identifier for the agent

getUADD

public java.lang.String getUADD()
Obtain the UADD property used to uniquely identify a VoyagerLocator.

Returns:
String indicating the unique identifier of the agent

setName

public void setName(java.lang.String name)
Set the AGENT_NAME property used to bind a TcpLocator with a _TcpReceiverBaseImpl object.

Parameters:
name - the unique identifier for the agent

getName

public java.lang.String getName()
Obtain the AGENT_NAME property of a TcpLocator.

Returns:
String indicating the name of the agent

setHost

public void setHost(java.lang.String host)
Set the AGENT_HOST property to specify the host on which a tcp nameserver runs

Parameters:
host - the host on which the name server for that locator runs

toString

public java.lang.String toString()
Obtain the AGENT_HOST property.

Returns:
String indicating the nameserver host of the agent

getHost

public java.lang.String getHost()

setPort

public void setPort(java.lang.String port)
Set the AGENT_PORT property to specify the port on which to talk to a tcp nameserver

Parameters:
port - the port on which the name server for that locator listens

getPort

public java.lang.String getPort()
Obtain the AGENT_PORT property.

Returns:
String indicating the nameserver port of the agent