ERCNPublisher Class Reference

Collaboration diagram for ERCNPublisher:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void publishChange (NSNotification notification)

Package Functions

 ERCNPublisher (ERCNNotificationCoordinator coordinator)
synchronized void terminate ()

Private Member Functions

TopicPublisher _topicPublisher (Topic topic, TopicSession topicSession)
TopicSession _topicSession ()

Private Attributes

ERCNNotificationCoordinator _coordinator


Detailed Description

ERCNPublisher sends change notifications to other application instances via JMS server. It observes changes in the default EOObjectStoreCoordinator and creates an ERCNSnapshot object when EOEditingContext saveChanges is performed.

There must be exactly one instance of the ERCNPublisher on the application and registered to the NSNotificationCenter, but its publishChange method will be executed by application's multiple worker threads concurrently. Since JMS session object is limited for serial use (single threaded use), ERCNPublisher prepares a JMS session object per thread so that each worker threads can perform the operation concurrently.


Constructor & Destructor Documentation

ERCNPublisher ( ERCNNotificationCoordinator  coordinator  )  [package]


Member Function Documentation

TopicPublisher _topicPublisher ( Topic  topic,
TopicSession  topicSession 
) [private]

TopicSession _topicSession (  )  [private]

void publishChange ( NSNotification  notification  ) 

synchronized void terminate (  )  [package]


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:46 2012 for Project Wonder by  doxygen 1.5.8