<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 Apr 2011, at 10:57, Manik Surtani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How do you generate the Long internalID of an XID? &nbsp;</div></blockquote>I'va factorised the IdGenerator(now ClusterIdGenerator) &nbsp;galder wrote for generating cluster-unique longs for HR's versioned operations. &nbsp;<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Another approach may be to take the byte[] (XID) and Base64 it. &nbsp;Then you have a 1-to-1 mapping between the XID and a JMX-friendly String. &nbsp;:-) &nbsp;Or maybe an SHA1 hash of the byte[].</div></div></blockquote>yes,that would work as well. A long is smaller and (not that matters a lot) cheaper to generate.&nbsp;<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div><div><div>On 4 Apr 2011, at 12:46, Mircea Markus wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>After taking it with Jonathan here is the list of JMX operations I want to add for recovery:&nbsp;<a href="http://community.jboss.org/wiki/Transactionrecoverydesign#JMX_tooling_for_handling_in_doubt_transactions">http://community.jboss.org/wiki/Transactionrecoverydesign#JMX_tooling_for_handling_in_doubt_transactions</a></div><div>Any feedback appreciated.</div><div><br></div><div>Cheers,</div><div>Mircea</div><div><br></div><div>&nbsp;</div></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div>Lead, Infinispan</div><div><a href="http://www.infinispan.org/">http://www.infinispan.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br></body></html>