kaos.core.util
Class MethodCallRequestHandler

java.lang.Object
  extended by kaos.core.util.MethodCallRequestHandler
Direct Known Subclasses:
ActionMethodRequestHandler, DSCoordinatorImpl

public abstract class MethodCallRequestHandler
extends java.lang.Object


Field Summary
protected  KAoSAgentDescription _agentDescription
           
protected  Locator _locator
           
protected  Logger _logger
           
protected  MessageTransportService _mts
           
protected  java.lang.String _nickName
           
 
Constructor Summary
MethodCallRequestHandler()
           
 
Method Summary
 void bindToTransport(KAoSAgentDescription desc)
           
 void initialize(MessageTransportService mts, JasBean entityEnv)
          This method initializes the MethodCallRequestHandler to receive messages from remote entities, using the entityEnv to obtain its local locator.
 void receiveMessage(TransportMessage msg)
           
protected  MethodCallResultMsg satisfyRequest(MethodCallRequestMsg requestMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nickName

protected java.lang.String _nickName

_mts

protected MessageTransportService _mts

_locator

protected Locator _locator

_agentDescription

protected KAoSAgentDescription _agentDescription

_logger

protected Logger _logger
Constructor Detail

MethodCallRequestHandler

public MethodCallRequestHandler()
Method Detail

initialize

public void initialize(MessageTransportService mts,
                       JasBean entityEnv)
                throws java.lang.Exception
This method initializes the MethodCallRequestHandler to receive messages from remote entities, using the entityEnv to obtain its local locator. Note that the entityEnv should also contain the agent's nickname, if there is one, as the value of the key KAoSConstants.NAME

Throws:
java.lang.Exception

bindToTransport

public void bindToTransport(KAoSAgentDescription desc)
                     throws java.lang.Exception
Throws:
java.lang.Exception

receiveMessage

public void receiveMessage(TransportMessage msg)

satisfyRequest

protected MethodCallResultMsg satisfyRequest(MethodCallRequestMsg requestMsg)