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

java.lang.Object
  extended byedu.vub.at.actors.net.cmd.VMCommand
      extended byedu.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

Field Summary
private  Packet serializedService_
           
private  Packet serializedTopic_
           
 
Fields inherited from class edu.vub.at.actors.net.cmd.VMCommand
_TRANSMISSION_TIMEOUT_
 
Constructor Summary
CMDProvideService(Packet topic, Packet service)
           
 
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 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

serializedTopic_

private final Packet serializedTopic_

serializedService_

private final Packet serializedService_
Constructor Detail

CMDProvideService

public CMDProvideService(Packet topic,
                         Packet service)
Method Detail

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 executed
wrapper - the JGroups message wrapper that was used to transport this command object
Throws:
java.lang.Exception