|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.vub.at.actors.eventloops.EventLoop
edu.vub.at.actors.natives.ELActor
edu.vub.at.actors.natives.ELDiscoveryActor
Every VM has an associated Discovery Actor. This is a regular actor (with a native Actor Mirror) which is responsible for matching local publications with local and remote subscriptions.
Nested Class Summary |
Nested classes inherited from class edu.vub.at.actors.eventloops.EventLoop |
EventLoop.EventProcessor |
Field Summary | |
private DiscoveryManager |
discoveryManager_
manages subscriptions and publications |
Fields inherited from class edu.vub.at.actors.natives.ELActor |
host_, receptionists_ |
Fields inherited from class edu.vub.at.actors.eventloops.EventLoop |
eventQueue_, processor_ |
Constructor Summary | |
ELDiscoveryActor(ELVirtualMachine host)
|
Method Summary | |
void |
event_batchRemotePublications(MultiMap matchingPublications)
Received in response to the CMDJoinServices command of a remote VM |
void |
event_cancelPublication(DiscoveryManager.Publication pub)
This event is fired whenever a service offer is being revoked. |
void |
event_cancelSubscription(DiscoveryManager.Subscription sub)
This event is fired whenever a service request is being revoked. |
void |
event_clientSubscribed(DiscoveryManager.Subscription sub)
This event is fired whenever an object requests a service using the require: language construct. |
void |
event_receiveNewSubscriptionsFrom(java.util.Set subscriptionTopics,
org.jgroups.Address fromMember)
When a VM is discovered by another VM, that VM can send its outstanding subscriptions to this VM. |
void |
event_remotePublication(Packet serializedProvidedTopic,
Packet serializedProvidedService)
Received in response to the CMDProvideService command of a remote VM |
void |
event_remoteSubscription(Packet serializedRequiredTopic,
org.jgroups.Address replyTo)
Received in response to the CMDRequireService command of a remote VM TODO: perhaps transform this into a sync_event and let CMDRequireService perform the reply |
void |
event_sendAllSubscriptionsTo(org.jgroups.Address newMember)
When a new VM has been discovered, the discovery agent is responsible for sending all outstanding subscription topics to that VM, such that it can be checked whether the newcomer has some publications that can resolve outstanding requests. |
void |
event_servicePublished(DiscoveryManager.Publication pub)
This event is fired whenever an object is being offered as a service provide using the provide: language construct. |
Methods inherited from class edu.vub.at.actors.natives.ELActor |
currentActor, event_accept, event_acceptSelfSend, event_init, event_serviceJoined, export, getActorMirror, getHost, handle, initRootObject, initSharedFields, resolve, setActorMirror, sync_event_eval, sync_event_performTest, sync_event_symbioticInvocation |
Methods inherited from class edu.vub.at.actors.eventloops.EventLoop |
currentEventLoop, execute, owner, receive, receiveAndWait, receivePrioritized, stopProcessing, toEventLoop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final DiscoveryManager discoveryManager_
Constructor Detail |
public ELDiscoveryActor(ELVirtualMachine host)
Method Detail |
public void event_servicePublished(DiscoveryManager.Publication pub)
pub
- - a publication containing the serialized forms of the topic and the exported service objectpublic void event_clientSubscribed(DiscoveryManager.Subscription sub)
sub
- - a subscription containing the serialized forms of the topic and the subscription handlerpublic void event_cancelPublication(DiscoveryManager.Publication pub)
pub
- - the original publication object to cancelpublic void event_cancelSubscription(DiscoveryManager.Subscription sub)
sub
- - the original subscription object to cancelpublic void event_remotePublication(Packet serializedProvidedTopic, Packet serializedProvidedService)
public void event_batchRemotePublications(MultiMap matchingPublications)
matchingPublications
- - a map from serialized ATStripe topics to Sets of serialized
ATObjects that provide the serialized topic.public void event_remoteSubscription(Packet serializedRequiredTopic, org.jgroups.Address replyTo)
public void event_sendAllSubscriptionsTo(org.jgroups.Address newMember)
public void event_receiveNewSubscriptionsFrom(java.util.Set subscriptionTopics, org.jgroups.Address fromMember)
subscriptionTopics
- - a Set of Packet objects representing serialized ATStripe topics
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |