예제 #1
0
 def _receive_removed_subscriber(
     self,event_uuid,removed_subscriber_event_uuid,host_uuid,resource_uuid):
     '''
     @see _receive_additional_subscriber
     '''
     service_action = waldoServiceActions._ReceiveSubscriberAction(
         self,event_uuid,removed_subscriber_event_uuid,
         host_uuid,resource_uuid,True)
     self._thread_pool.add_service_action(service_action)
예제 #2
0
    def _receive_additional_subscriber(
        self,event_uuid,subscriber_event_uuid,host_uuid,resource_uuid):
        '''
        @param {uuid} event_uuid --- The uuid of the event that also
        exists on this endpoint that is trying to subscribe to a
        resource (with uuid resource_uuid) that subscriber_event_uuid
        is also subscribed for.

        @param {uuid} subscriber_event_uuid --- UUID for an event that
        is not necesarilly on this host that holds a subscription on
        the same resource that we are trying to subscribe to.

        @see notify_additional_subscriber (in _ActiveEvent.py)
        '''
        service_action = waldoServiceActions._ReceiveSubscriberAction(
            self,event_uuid,subscriber_event_uuid,
            host_uuid,resource_uuid,False)
        self._thread_pool.add_service_action(service_action)