
Public Member Functions | |
| CollectionSyncClient (string nid, TimerCallback callback) | |
| Construct a new CollectionSyncClient. | |
| override string | ToString () |
| Returns the name of the collection. | |
| void | Reschedule (bool syncNow) |
| Reschedule the sync. | |
| void | ResetConnection () |
| Reset the connection service. | |
| void | Reschedule (bool overridePolicy, int delay) |
| Called to schedule a sync operation a the set sync Interval. | |
| void | SyncNow () |
| Called to synchronize this collection. | |
| int | CheckForUserMovement (string collectionID, string collectionHostID, string UserID, string DomainID) |
| Check whether user moved or not based on collection and user. | |
| bool | CheckForUserMovement (string NewHostID, string UserID, string DomainID) |
| Called if collection is moved, if yes , then set the new host id into the collection Also checks if its owner is moved , if yes , then update domain's HostID If it returns false, it means, collection is either deleted really on server, or it is there. true return means , collection has been moved from old server and it has been updated here also. | |
| bool | GetChangedNodeInfoArrayIncrements (out SyncNodeInfo[] cstamps, ref string tempClientContext, ref bool moreEntries) |
| Get the changes from the change log in increments. | |
Properties | |
| string | CollectionID [get] |
| Get the collection ID. | |
| Simias::Sync::CollectionSyncClient::CollectionSyncClient | ( | string | nid, | |
| TimerCallback | callback | |||
| ) | [inline] |
Construct a new CollectionSyncClient.
| nid | The node ID. | |
| callback | Callback that is called when collection should be synced. |
| override string Simias::Sync::CollectionSyncClient::ToString | ( | ) | [inline] |
Returns the name of the collection.
| void Simias::Sync::CollectionSyncClient::Reschedule | ( | bool | syncNow | ) | [inline] |
Reschedule the sync.
| syncNow | Whether to sync immediately or wait for some time |
| void Simias::Sync::CollectionSyncClient::ResetConnection | ( | ) | [inline] |
Reset the connection service.
| void Simias::Sync::CollectionSyncClient::Reschedule | ( | bool | overridePolicy, | |
| int | delay | |||
| ) | [inline] |
Called to schedule a sync operation a the set sync Interval.
| overridePolicy | ||
| delay |
| void Simias::Sync::CollectionSyncClient::SyncNow | ( | ) | [inline] |
Called to synchronize this collection.
We get all new entries in the collection and set the cookie, after the reconcile and before setting the cookie, the scanned entries are missed, so postphone the start till the rconcile gets over
| int Simias::Sync::CollectionSyncClient::CheckForUserMovement | ( | string | collectionID, | |
| string | collectionHostID, | |||
| string | UserID, | |||
| string | DomainID | |||
| ) | [inline] |
Check whether user moved or not based on collection and user.
| collectionID | ID of the collection | |
| collectionHostID | ID of the host collection | |
| UserID | ID of the user to check for user moment | |
| DomainID | ID of the domain that belongs to user |
| bool Simias::Sync::CollectionSyncClient::CheckForUserMovement | ( | string | NewHostID, | |
| string | UserID, | |||
| string | DomainID | |||
| ) | [inline] |
Called if collection is moved, if yes , then set the new host id into the collection Also checks if its owner is moved , if yes , then update domain's HostID If it returns false, it means, collection is either deleted really on server, or it is there. true return means , collection has been moved from old server and it has been updated here also.
| bool Simias::Sync::CollectionSyncClient::GetChangedNodeInfoArrayIncrements | ( | out SyncNodeInfo[] | cstamps, | |
| ref string | tempClientContext, | |||
| ref bool | moreEntries | |||
| ) | [inline] |
Get the changes from the change log in increments.
| nodes | returns the list of changes. | |
| context | The context handed back from the last call. |
string Simias::Sync::CollectionSyncClient::CollectionID [get] |
Get the collection ID.
1.5.6