kaos.core.service.util
Class DefaultKAoSLocator

java.lang.Object
  extended by AcrLocator
      extended by kaos.core.service.util.DefaultKAoSLocator
All Implemented Interfaces:
KAoSLocator
Direct Known Subclasses:
CorbaLocator, CougaarLocator, KAoSGridLocator, TCPLocator

public class DefaultKAoSLocator
extends AcrLocator
implements KAoSLocator

Defines the operations to set and get a specific transport type used in KAoS communications.


Field Summary
 
Fields inherited from interface kaos.core.KAoSLocator
NAME_KEY
 
Constructor Summary
DefaultKAoSLocator()
           
 
Method Summary
 java.lang.String getTransportName()
           
 java.lang.String getTransportType()
          Get the transport type property.
 void setTransportName(java.lang.String name)
          Set the name of the transport name this locator is associated with.
 void setTransportType(java.lang.String type)
          Set the transport type property used in all KAoS transport Locators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKAoSLocator

public DefaultKAoSLocator()
Method Detail

getTransportType

public java.lang.String getTransportType()
Get the transport type property.

Specified by:
getTransportType in interface KAoSLocator
Returns:
String containing the type ofthe transport this Locator encapsulates.

setTransportType

public void setTransportType(java.lang.String type)
Set the transport type property used in all KAoS transport Locators.

Specified by:
setTransportType in interface KAoSLocator
Parameters:
type - The type of the transport this Locator represents.

getTransportName

public java.lang.String getTransportName()
Specified by:
getTransportName in interface KAoSLocator
Returns:
String representing the name of transport the locator describes. This name is used within KAoS and it is defined by transport constants in KAoSBootstrapper.

setTransportName

public void setTransportName(java.lang.String name)
Set the name of the transport name this locator is associated with. This name is used within KAoS and it is defined by transport constants in KAoSBootstrapper.

Specified by:
setTransportName in interface KAoSLocator
Parameters:
name - The type of transport this locator describes.