【中华硕博网-全球500所高校指定报名中心】
【在职研究生】 【在职博士】 【MBA/EMBA】
  您现在的位置: 中华硕博网 > 资格认证 > IT认证 > 厂商认证 > Java认证 > 文章正文
站内搜索:

[推荐]一位SCJDer(153/155)的Design details

作者:佚名    文章来源:不详    点击数:    更新时间:2008-5-15
中华硕博网(http://www.china-b.com)全球500所高校指定报名中心--[推荐]一位SCJDer(153/155)的Design details

  Design details :
  1. Data layer :
   Data class is implemented as a Singleton pattern .
   (Only one exists per VM) .
   Defined a new LockManager for locking / unlocking methods .
   Also a Singleton.
  
   Changed the signature of the lock / unlock methods to
  track the owner of the lock by clientID passed from the
  client.
  
   Locking scheme checks for the following :
   a. Before performing full database lock, check if database already locked by another client,
   b. Before record unlocking or full database unlock, check if the clientID is the same as the owner of the lock.
   c. Before full database unlock, check if the database is locked in the first place.
  2. Server layer
   Adapter pattern .
   Multithreading implementation.
  3. Client Layer :
   Factory , Mediator
  
  4. Other points :
  Used RMI . Modified Data class. Used Multithreaded Server design .
   Only Write Locks (no read locks) .
 相关热词搜索
>>更多
  • 此栏目下没有文章