edu.vub.at.actors.net.cmd
Class CMDTransmitATMessage
java.lang.Object
edu.vub.at.actors.net.cmd.VMCommand
edu.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serializedATMessage_
private final Packet serializedATMessage_
destinationActorId_
private final int destinationActorId_
CMDTransmitATMessage
public CMDTransmitATMessage(int destinationActorId,
Packet atMessage)
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 executedwrapper
- the JGroups message wrapper that was used to transport this command object
- Throws:
java.lang.Exception