Conversion between local and shared identifiers

2 views
Skip to first unread message

Bob Gregory

unread,
Jan 8, 2010, 12:16:50 PM1/8/10
to Mesh4x Discussion
Hi,

I'm currently playing with mesh4n, generally sprucing it up and
futzing around with the code.

The MS FeedSync libraries have the concept of a FeedIdConverter which
maps between a local identifier (like a primarykey key) and a shared
identifier (like a GUID) so that two sync participants can have
different ID formats.

Is there an equivalent concept in mesh4j, or is this something that
the framework doesn't concern itself with? It feels very much like
something that should be stored in the syncrepository.

-- Bob Gregory

Saiful islam Raju

unread,
Jan 10, 2010, 7:11:47 AM1/10/10
to mes...@googlegroups.com
Hi Bob,

Mesh4j uses GUID as sync id (using java UUID class)  where item has its own  id.I dont know much about MS FeedSync lib but as you mentioned mapping of sync id and item id using FeedIdConverter class, yes mesh4j also maps sync id and item id.If you go through the Mesh4j lib you see there is a  SyncInfo class which binds Sync id and item id .Binding is processed through platform adapter like (SplitAdapter,ISyncRepository).SyncInfo having relevant information of Item id and Sync id is stored in  syncrepository through ISyncRepository.So platform adapter is responsible for generating different ID format during sync session.
 
Regards
raju

 



Bob Gregory

unread,
Jan 10, 2010, 7:26:47 AM1/10/10
to mes...@googlegroups.com
Thanks, Raju

That's exactly what I wanted to hear - I'd like to start bringing the
mesh4N port up to date, and I want to make sure I don't take it too
far away from the Java version.

-- B

--
An infinite number of mathematicians walk into a bar. The first one
orders a beer. The second orders half a beer. The third, a quarter of
a beer. The bartender says "You're all idiots", and pours two beers.

JMT - Gmail

unread,
Jan 13, 2010, 3:26:50 PM1/13/10
to mes...@googlegroups.com
Hi all,

Java version is not exactly equals to C# version.

We advanced the java version more than the C# version, and there are design
differences.

As far as I know, C# version was frozen.

I can help you with the actual design and constrains (my babies).

JMT

--------------------------------------------------
From: "Bob Gregory" <patho...@gmail.com>
Sent: Sunday, January 10, 2010 9:26 AM
To: <mes...@googlegroups.com>
Subject: Re: [mesh4x] Conversion between local and shared identifiers

Reply all
Reply to author
Forward
0 new messages