Simias::Sync::CollectionSyncClient Class Reference

Class that implements the synchronization logic for a collection. More...

Collaboration diagram for Simias::Sync::CollectionSyncClient:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Class that implements the synchronization logic for a collection.


Constructor & Destructor Documentation

Simias::Sync::CollectionSyncClient::CollectionSyncClient ( string  nid,
TimerCallback  callback 
) [inline]

Construct a new CollectionSyncClient.

Parameters:
nid The node ID.
callback Callback that is called when collection should be synced.


Member Function Documentation

override string Simias::Sync::CollectionSyncClient::ToString (  )  [inline]

Returns the name of the collection.

Returns:
Name of the collection.

void Simias::Sync::CollectionSyncClient::Reschedule ( bool  syncNow  )  [inline]

Reschedule the sync.

Parameters:
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.

Parameters:
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.

Parameters:
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
Returns:
1 if user had been moved else -1

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.

Parameters:
nodes returns the list of changes.
context The context handed back from the last call.
Returns:
false the call failed. The context is initialized.


Property Documentation

string Simias::Sync::CollectionSyncClient::CollectionID [get]

Get the collection ID.


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

Generated on Wed Apr 8 14:57:17 2009 for simias by  doxygen 1.5.6