edu.vub.at.actors.net.cmd
Class CMDTransmitATMessage

java.lang.Object
  extended byedu.vub.at.actors.net.cmd.VMCommand
      extended byedu.vub.at.actors.net.cmd.CMDTransmitATMessage
All Implemented Interfaces:
java.io.Serializable

public class CMDTransmitATMessage
extends VMCommand

A CMDTransmitATMessage message encapsulates an AmbientTalk message being sent from a sending actor to a recipient actor. SENDER: a remote far reference RECEIVER: the VM hosting the object that the far reference denotes MODE: SYNCHRONOUS, UNICAST PROPERTIES: - Packet representing serialized AT message, - id of the actor that should unserialize and process the message REPLY: no other VM command, but should return synchronous acknowledgement

Author:
tvcutsem
See Also:
Serialized Form

Field Summary
private  int destinationActorId_
           
private  Packet serializedATMessage_
           
 
Fields inherited from class edu.vub.at.actors.net.cmd.VMCommand
_TRANSMISSION_TIMEOUT_
 
Constructor Summary
CMDTransmitATMessage(int destinationActorId, Packet atMessage)
           
 
Method Summary
 java.lang.Object send(org.jgroups.blocks.MessageDispatcher dispatcher, org.jgroups.Address recipientVM)
           
 java.lang.Object uponReceiptBy(ELVirtualMachine remoteHost, org.jgroups.Message wrapper)
          To be overridden by subclasses to specify the behaviour to execute upon reception and execution of the command object at the recipient VM.
 
Methods inherited from class edu.vub.at.actors.net.cmd.VMCommand
sendAsyncMulticast, sendAsyncUnicast, sendSynchronousUnicast, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serializedATMessage_

private final Packet serializedATMessage_

destinationActorId_

private final int destinationActorId_
Constructor Detail

CMDTransmitATMessage

public CMDTransmitATMessage(int destinationActorId,
                            Packet atMessage)
Method Detail

send

public java.lang.Object send(org.jgroups.blocks.MessageDispatcher dispatcher,
                             org.jgroups.Address recipientVM)
                      throws java.lang.Exception
Throws:
java.lang.Exception

uponReceiptBy

public java.lang.Object uponReceiptBy(ELVirtualMachine remoteHost,
                                      org.jgroups.Message wrapper)
                               throws java.lang.Exception
Description copied from class: VMCommand
To be overridden by subclasses to specify the behaviour to execute upon reception and execution of the command object at the recipient VM. This code is still executed in a JGroups thread!

Specified by:
uponReceiptBy in class VMCommand
Parameters:
remoteHost - the host at which the command arrived and is executed
wrapper - the JGroups message wrapper that was used to transport this command object
Throws:
java.lang.Exception