Basic HTML version of Foils prepared

Foil 26 Automatic synchronization in TANGO (3)

From General Tango API Java JavaScript and C Tango Tutorial San Diego MRA -- June 26 27 98 Datemod;June 26 98. by TangoInteractive Team


Implementation of the synchronization mechanism:
  • objects that 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



© 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