edu.vub.at.actors.net.cmd
Class CMDProvideService
java.lang.Object
edu.vub.at.actors.net.cmd.VMCommand
edu.vub.at.actors.net.cmd.CMDProvideService
- All Implemented Interfaces:
- java.io.Serializable
- public class CMDProvideService
- extends VMCommand
A CMDProvideService message is sent asynchronously to all connected VMs when
an actor on the sender VM provided a new publication. Connected VMs are notified
of this such that they can match this new publication with local subscriptions.
SENDER: the VM that provides a new publication
RECEIVER: all connected VMs
MODE: ASYNCHRONOUS, MULTICAST
PROPERTIES: the subscription info: topic and provided service object
REPLY: none
- Author:
- tvcutsem
- See Also:
- Serialized Form
Method Summary |
void |
send(org.jgroups.blocks.MessageDispatcher dispatcher)
|
java.lang.Object |
uponReceiptBy(ELVirtualMachine remoteHost,
org.jgroups.Message wrapper)
When a remote VM receives the notification, it checks whether any local subscriptions
can be matched with the new published service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serializedTopic_
private final Packet serializedTopic_
serializedService_
private final Packet serializedService_
CMDProvideService
public CMDProvideService(Packet topic,
Packet service)
send
public void send(org.jgroups.blocks.MessageDispatcher dispatcher)
uponReceiptBy
public java.lang.Object uponReceiptBy(ELVirtualMachine remoteHost,
org.jgroups.Message wrapper)
throws java.lang.Exception
- When a remote VM receives the notification, it checks whether any local subscriptions
can be matched with the new published service.
- 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