This class defines a Singleton that will be responsible to accumulate multiples calls to server, execute them and upon receival of server response, respass them to the appropriate thyDataSource component
This class defines a Singleton that will be responsible to accumulate multiples calls to server, execute them and upon receival of server response, respass them to the appropriate thyDataSource component | |
Tells the Connector to put its message on the specified Progress Holder | |
Tells the Connector which messages are to be shown when calling synchronize | |
Sets the protocol to be used by Synchronizer | |
Sets up the method that will handle synchronization calls | |
Sets internal synchronize check interval. | |
Performs a request to thySynchronizer. | |
This method is automatically called every pre-defined period of time. | |
Method that handles responses from server. | |
p.request = function ( name, method, params, event, obj )
Performs a request to thySynchronizer. This should be called from thyDataSource when any user action that demands server interaction is performed.
name | The name of the object plus an unique identifier, so if same object performs 2 calls to server, both will be executed. |
method | The method that this object need to be called. |
params | Method parameters. |
event | The event name (startup, read or write) |
obj | The object itself so server response can be populated to it |
p.synchronize = function ()
This method is automatically called every pre-defined period of time. It checks for client requests and performs the appropriate action, like a sweepOut() call to each thyDataSource which has reported an action request. After that, it will communicate with server and wait its response.
p._syncHandler = function ()
Method that handles responses from server. It verifies integrity of sync data and pass responses to appropriate thyDataSources
Tells the Connector to put its message on the specified Progress Holder
p.setProgressHolder = function( holder )
Sets the protocol to be used by Synchronizer
p.setProtocol = function ( protocol )
Sets up the method that will handle synchronization calls
p.setSyncMethod = function ( methodName )
Sets internal synchronize check interval.
p.setInterval = function ( interval )
Performs a request to thySynchronizer.
p.request = function ( name, method, params, event, obj )
This method is automatically called every pre-defined period of time.
p.synchronize = function ()
Method that handles responses from server.
p._syncHandler = function ()