incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Kambatla (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (S4-37) Emitters should allow registering a callback
Date Wed, 04 Jan 2012 22:09:39 GMT

    [ https://issues.apache.org/jira/browse/S4-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179932#comment-13179932
] 

Karthik Kambatla commented on S4-37:
------------------------------------

For now, to begin with, I shall add this feature to TCP and demonstrate its use. We can consider
including in the code base then.

The general idea is -
1. Add SendFutureListner interface to s4/base, having a method sendComplete()
2. Pass an object of type SendFutureListener to send() preserving Emitter.send() as well.
3. On successful completion of send(), sendComplete is invoked.
                
> Emitters should allow registering a callback
> --------------------------------------------
>
>                 Key: S4-37
>                 URL: https://issues.apache.org/jira/browse/S4-37
>             Project: Apache S4
>          Issue Type: New Feature
>    Affects Versions: 0.5
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>             Fix For: 0.5
>
>
> In the current state, emitters (udp, tcp, and others) send the messages across. They
do not necessarily acknowledge the information regarding the send (success/failure) to the
calling layer.
> An ACK from the emitter is important to realize more complicated emitter/listener protocols.
For instance, to implement a ReplicationEmitter (the message is sent to multiple nodes instead
of one node, say for fault-tolerance), the message should be processed only after it is replicated
the required number of times. So, if we are using TCP as the underlying layer, it should callback
when the operation succeeds.
> I am eager to hear comments on (1) should we provision for complicated protocols? (2)
if so, is there any better way of going about things?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message