2010年3月16日火曜日

EMF Transaction

またまた新しい知識を得なければならなくなりました。
その名もEMF Transaction。

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/references/overview/EMF.html

概要を説明すると、EditingDomainをマルチスレッドアクセスでも整合性を保つようにDBのような
トランザクションの仕組みをEMFに取り込んだものである。
基本的にはトランザクションはコマンドをトランザクションとして処理を行う。



ざっくりな和訳


The transaction framework provides the capability of managing access to an editing domain
by multiple reading and writing threads. It also provides a facility to register and
share an editing domain amongst different clients and listeners. Resource set listeners
are defined in the transaction layer and are provided with notifications in batches.
The resource set listener has the option to append changes before the transaction is
committed (pre-commit) or receive only the notifications of transactions that were
validated and not rolled-back (post-commit). The following are the main extension
points and classes to be used with the transaction framework:


トランザクションフレームワークはマルチスレッドによるEditingDomainのR/Wのアクセス管理を可能にする。
異なるクライアント間でeditingDomainとリスナの共有と登録で実現できている。
リソースセットリスナはトランザクション層で定義されていて、
バッチの通知で提供されている。
リソースセットリスナは変更を追加するオプションを持っている。
トランザクションがコミットされる前やvalidateされたトランザクションや
ロールバックされていないトランザクションの通知を受け取る前に
次の拡張ポイントとクラスでトランザクションフレームワークが利用されている。

0 件のコメント:

コメントを投稿