<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I'm still stabilising HEAD at the moment, almost there. Once this is stable (as far as interfaces go) and we have a properly working test suite, you can start moving your stuff in. I expect to have HEAD stable by mid next week.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,<BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Manik Surtani</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Lead, JBoss Cache</DIV><DIV>JBoss, a division of Red Hat</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Email: <A href="mailto:manik@jboss.org">manik@jboss.org</A></DIV><DIV>Telephone: +44 7786 702 706</DIV><DIV>MSN: <A href="mailto:manik@surtani.org">manik@surtani.org</A></DIV><DIV>Yahoo/AIM/Skype: maniksurtani</DIV></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On 16 Aug 2006, at 19:23, Vladimir Blagojevic wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV dir="ltr" align="left"><FONT face="Arial" color="#0000ff" size="2"><SPAN class="328351818-16082006">Ok np. My current task is to integrate streaming state transfer into JBC and I will be working mostly under Brian's guidance. What is the deadline for this integration and how do we proceed?</SPAN></FONT></DIV> <DIV dir="ltr" align="left"><FONT face="Arial" color="#0000ff" size="2"><SPAN class="328351818-16082006"></SPAN></FONT> </DIV> <DIV dir="ltr" align="left"><FONT face="Arial" color="#0000ff" size="2"><SPAN class="328351818-16082006">Vladimir</SPAN></FONT></DIV><BR> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <HR tabindex="-1"> <FONT face="Tahoma" size="2"><B>From:</B> Manik Surtani [<A href="mailto:manik@jboss.org">mailto:manik@jboss.org</A>] <BR><B>Sent:</B> Wednesday, August 16, 2006 2:14 PM<BR><B>To:</B> Vladimir Blagojevic<BR><B>Subject:</B> Re: [jbosscache-dev] Re: Integrating steaming transfer in JBC<BR></FONT><BR></DIV> <DIV></DIV>Correct. At the end of the day this is just an overload on the same functionality, allowing different approaches, so we're not really making the interface any more complex.<BR> <DIV><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"> <DIV>--</DIV> <DIV>Manik Surtani</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>Lead, JBoss Cache</DIV> <DIV>JBoss, a division of Red Hat</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>Email: <A href="mailto:manik@jboss.org">manik@jboss.org</A></DIV> <DIV>Telephone: +44 7786 702 706</DIV> <DIV>MSN: <A href="mailto:manik@surtani.org">manik@surtani.org</A></DIV> <DIV>Yahoo/AIM/Skype: maniksurtani</DIV></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN></DIV><BR> <DIV> <DIV>On 16 Aug 2006, at 15:08, Vladimir Blagojevic wrote:</DIV><BR class="Apple-interchange-newline"> <BLOCKQUOTE type="cite"> <DIV dir="ltr" align="left"><SPAN class="296230614-16082006"><FONT face="Arial" color="#0000ff" size="2">Manik,</FONT></SPAN></DIV> <DIV dir="ltr" align="left"><SPAN class="296230614-16082006"><FONT face="Arial" color="#0000ff" size="2"></FONT></SPAN> </DIV> <DIV dir="ltr" align="left"><SPAN class="296230614-16082006"><FONT face="Arial" color="#0000ff" size="2">You mean you have nothing against 8 method approach for state transfer?</FONT></SPAN></DIV> <DIV dir="ltr" align="left"><SPAN class="296230614-16082006"><FONT face="Arial" color="#0000ff" size="2"></FONT></SPAN> </DIV> <DIV dir="ltr" align="left"><SPAN class="296230614-16082006"><FONT face="Arial" color="#0000ff" size="2">Vladimir</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <HR tabindex="-1"> <FONT face="Tahoma" size="2"><B>From:</B> Manik Surtani [<A href="mailto:manik@jboss.org">mailto:manik@jboss.org</A>] <BR><B>Sent:</B> Wednesday, August 16, 2006 5:28 AM<BR><B>To:</B> Bela Ban<BR><B>Cc:</B> Vladimir Blagojevic; Ben Wang; Brian Stansberry<BR><B>Subject:</B> Re: [jbosscache-dev] Re: Integrating steaming transfer in JBC<BR></FONT><BR></DIV> <DIV></DIV>I've got nothing against overloading the methods. <DIV><BR class="khtml-block-placeholder"></DIV> <DIV><BR> <DIV><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"> <DIV>--</DIV> <DIV>Manik Surtani</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>Lead, JBoss Cache</DIV> <DIV>JBoss, a division of Red Hat</DIV> <DIV><BR class="khtml-block-placeholder"></DIV> <DIV>Email: <A href="mailto:manik@jboss.org">manik@jboss.org</A></DIV> <DIV>Telephone: +44 7786 702 706</DIV> <DIV>MSN: <A href="mailto:manik@surtani.org">manik@surtani.org</A></DIV> <DIV>Yahoo/AIM/Skype: maniksurtani</DIV></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN></DIV><BR> <DIV> <DIV>On 16 Aug 2006, at 07:36, Bela Ban wrote:</DIV><BR class="Apple-interchange-newline"> <BLOCKQUOTE type="cite">So you;re saying, since the methods that take a byte[] will construct an input stream anyway, why not provide the stream in the first place ? I like the idea; and it should not be hard to write code that generates a byte[] array from an input stream. However, what's wrong with having 8 state transfer methods, and provide a ListenerAdapter class, which has null implementations, and you simply extend that adapter class ?<BR><BR>Vladimir Blagojevic wrote: <BLOCKQUOTE cite="midC2CDEFBECFC9A14892BCCFB4C95F48680914A81E@EX-201.mail.navisite.com" type="cite"><PRE wrap="">Guys,
Is there a need to have additional 4 methods (thus in total 8 methods
for state transfer) in CacheLoader API in order to support both
streaming and byte based state transfer or can we cover both types of
state transfer by having only 4 InputStream/OutputStream based methods?
These 4 methods would be something like:
void storeEntireState(InputStream s);
void storeState(Fqn subtree,InputStream s);
void loadEntireState(OutputStream s);
void loadState(Fqn subtree,OutputStream s);
We ensure that byte state transfer is still supported but that doesn't
mean the CacheLoader needs to take/return byte[]! If byte state transfer
is used, the StateTransferIntegrator can be responsible for creating
ByteArrayInput(Output)Stream from the persistent state byte[] and pass
stream to the CacheLoader instead of byte[].
There will still be complexity in the integrator code to support both
flavors, but that complexity doesn't need to be pushed from jgroups
layer all the way through to the CacheLoader API.
Thoughts?
_______________________________________________
jbosscache-dev mailing list
<A class="moz-txt-link-abbreviated" href="mailto:jbosscache-dev@lists.jboss.org">jbosscache-dev@lists.jboss.org</A>
<A class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosscache-dev">https://lists.jboss.org/mailman/listinfo/jbosscache-dev</A>
</PRE></BLOCKQUOTE><BR><PRE class="moz-signature" cols="60">--
Bela Ban
Lead JGroups / Manager JBoss Clustering Group
JBoss - a division of Red Hat
</PRE></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>