Record Management System (I)

22 April 2008

RMS is a database (flat file) which MIDlets can use to persist data. In this post, I will introduce the audience with RMS.

The device platform maintains the integrity of the MIDlet’s record stores throughout the normal use. The reboots, battery changes, etc. won’t affect the RMS. An interesting question developers ask is, where is this Record Store created? It is created at platfdependent location, like nonvolatile device memory, and is not directly exposed to the MIDlets.

an important thing to note is that that record store implementations ensure that all record store operations are atomic, synchronous, and serialized, so no corruption of data will occur during multiple accesses.
The record store maintains the following information:

- timestamp to indicate when it was modified.
- version information (integer) which is incremented for each operation that modifies the contents of the record store.

The version and timestamp info is of great use when you want to start the synchronization process. An interesting info for you is that each record in a Record Store has an array of bytes with a unique integer identifier.

There arises an interesting question: What if a MIDlet uses multiple threads to access a record store? You as a developer should not address this. Its MIDlet’s responsibility to coordinate this access; and if it fails to do so, unintended consequences may result. Also note that if a platform performs a synchronization of a record store with multiple threads trying to access the record store simultaneously, the platform will manage everything.

del.icio.us:Record Management System (I)  digg:Record Management System (I)  spurl:Record Management System (I)  wists:Record Management System (I)  simpy:Record Management System (I)  newsvine:Record Management System (I)  blinklist:Record Management System (I)  furl:Record Management System (I)  reddit:Record Management System (I)  fark:Record Management System (I)  blogmarks:Record Management System (I)  Y!:Record Management System (I)  smarking:Record Management System (I)  magnolia:Record Management System (I)  segnalo:Record Management System (I)  gifttagging:Record Management System (I)

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Record Management System (I)

Leave a Reply