|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.vub.at.actors.net.cmd.VMCommand
VM Command objects are the message objects that AT/2 virtual machines send to one another. They are control objects sent by one VM and received by another. The receiving VM executes the VM Command object's uponReceiptBy method, which allows the command object to encapsulate the reception code itself. By convention, all VM Command classes are prefixed with CMD.
Field Summary | |
static int |
_TRANSMISSION_TIMEOUT_
the default transmission timeout for JGroups synchronous message communication |
private java.lang.String |
description_
|
Constructor Summary | |
VMCommand(java.lang.String descr)
|
Method Summary | |
protected void |
sendAsyncMulticast(org.jgroups.blocks.MessageDispatcher dispatcher)
Sends this VM Command object asynchronously to all connected VMs. |
protected void |
sendAsyncUnicast(org.jgroups.blocks.MessageDispatcher dispatcher,
org.jgroups.Address recipientVM)
Sends this VM Command object asynchronously to the recipient VM. |
protected java.lang.Object |
sendSynchronousUnicast(org.jgroups.blocks.MessageDispatcher dispatcher,
org.jgroups.Address recipientVM)
Sends this VM Command object synchronously to the recipient VM. |
java.lang.String |
toString()
|
abstract 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 |
Field Detail |
private final java.lang.String description_
public static final int _TRANSMISSION_TIMEOUT_
Constructor Detail |
public VMCommand(java.lang.String descr)
descr
- for debugging purposesMethod Detail |
public java.lang.String toString()
public abstract java.lang.Object uponReceiptBy(ELVirtualMachine remoteHost, org.jgroups.Message wrapper) throws java.lang.Exception
remoteHost
- the host at which the command arrived and is executedwrapper
- the JGroups message wrapper that was used to transport this command object
java.lang.Exception
protected void sendAsyncUnicast(org.jgroups.blocks.MessageDispatcher dispatcher, org.jgroups.Address recipientVM) throws org.jgroups.TimeoutException, org.jgroups.SuspectedException
org.jgroups.TimeoutException
org.jgroups.SuspectedException
protected void sendAsyncMulticast(org.jgroups.blocks.MessageDispatcher dispatcher) throws org.jgroups.TimeoutException, org.jgroups.SuspectedException
org.jgroups.TimeoutException
org.jgroups.SuspectedException
protected java.lang.Object sendSynchronousUnicast(org.jgroups.blocks.MessageDispatcher dispatcher, org.jgroups.Address recipientVM) throws org.jgroups.TimeoutException, org.jgroups.SuspectedException
org.jgroups.TimeoutException
org.jgroups.SuspectedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |