def receive_partner_request_commit(self,msg): ''' @param {PartnerCommitRequest.proto} msg ''' partner_request_commit_action = ( waldoServiceActions._ReceiveRequestCommitAction( self.endpoint,msg.event_uuid.data,True)) self.threadsafe_queue.put(partner_request_commit_action)
def receive_request_commit_from_endpoint(self,uuid,requesting_endpoint): ''' @param {uuid} uuid --- The uuid of the _ActiveEvent that we want to commit. @param {Endpoint object} requesting_endpoint --- Endpoint object if was requested to commit by endpoint objects on this same host (from endpoint object calls). Called by another endpoint on this endpoint (not called by external non-Waldo code). Forward the commit request to any other endpoints that were touched when the event was processed on this side. ''' endpoint_request_commit_action = ( waldoServiceActions._ReceiveRequestCommitAction( self.endpoint,uuid,False)) self.threadsafe_queue.put(endpoint_request_commit_action)