Basic HTML version of Foils prepared April 25 98

Foil 8 Automatic synchronization in Tango (2)

From Simple Examples and Automatic Synchronization Tango Tutorial Alliance 98 NCSA Illinois -- April 27 98. by TangoInteractive Team


1 Implementation of the synchronization mechanism:
  • objects which wish to collaborate implement Updatable interface:
    • getStateUpdate( int feature, DataOutputStream update )
    • updateState( int feature, DataInputStream update )
    • feature is a particular feature which is updated
  • when state of an object changes and synchronization is needed, object notifies the synchronization mechanism about the type of change by posting event to the Synchronizer:
    • new UpdateEvent( Updatable this, int feature )
    • special feature values UPDATE_CREATE, UPDATE_DELETE are recognized
  • the rest is taken care by the Synchronizer

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998