kaos.core.service.transport.tcp
Class TCPKAoSServiceRootImpl

java.lang.Object
  extended by kaos.core.service.KAoSServiceRootImpl
      extended by kaos.core.service.transport.tcp.TCPKAoSServiceRootImpl
All Implemented Interfaces:
KAoSServiceRoot

public class TCPKAoSServiceRootImpl
extends KAoSServiceRootImpl


Field Summary
 
Fields inherited from interface kaos.core.service.KAoSServiceRoot
DIRECTORY_SERVICE_ROOT, ENTITY_ROOT
 
Constructor Summary
TCPKAoSServiceRootImpl()
           
 
Method Summary
 KAoSAgentDirectoryServiceProxy getDirectoryProxy()
           
 MessageTransportService getPreferredMessageTransportService()
          Obtain the preferred MessageTransportService.
 KAoSEntityDescription setLocatorForDescription(KAoSEntityDescription desc, Locator locator)
          This method is defined to avoid the java.io.NotSerializableException while serializing the KAoSEntityDescription in the kaos.core.util.Msg.
 
Methods inherited from class kaos.core.service.KAoSServiceRootImpl
getAgentDirectoryService, getAgentNamingService, getRootType, getService, getTransportSystem, setRootType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPKAoSServiceRootImpl

public TCPKAoSServiceRootImpl()
                       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPreferredMessageTransportService

public MessageTransportService getPreferredMessageTransportService()
Obtain the preferred MessageTransportService. There could be several MessageTransportServices loaded into the TransportSystem, however, the TransportSystem uses only one to send/receive messages, so to avoid exceptions, it is useful to specify the one that the TransportSystem uses. This specifies the GridMessageTransportService.

Specified by:
getPreferredMessageTransportService in interface KAoSServiceRoot
Specified by:
getPreferredMessageTransportService in class KAoSServiceRootImpl
Returns:
MessageTransportService, which is the GridMessageTransportService.

setLocatorForDescription

public KAoSEntityDescription setLocatorForDescription(KAoSEntityDescription desc,
                                                      Locator locator)
This method is defined to avoid the java.io.NotSerializableException while serializing the KAoSEntityDescription in the kaos.core.util.Msg. If the Locator is not explicitly set in the KAoSEntityDescription using a concrete class of the Locator, then the NotSerializableException is thrown.

Specified by:
setLocatorForDescription in interface KAoSServiceRoot
Overrides:
setLocatorForDescription in class KAoSServiceRootImpl
Parameters:
KAoSEntityDescription - to set the new concrete Locator in.
Locator - to use to instantiate its implementing class.
Returns:
KAoSEntityDescription containing created instance of the concrete transport Locator..

getDirectoryProxy

public KAoSAgentDirectoryServiceProxy getDirectoryProxy()