|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncml.spds.SyncManager
public class SyncManager
The SyncManager is the engine of the synchronization process on the client library. It initializes the sync, checks the server responses and communicate with the SyncSource, which is the client-specific source of data. A client developer must prepare a SyncConfig to istantiate a SyncManager, and then can sync its sources calling the sync() method.
Field Summary | |
---|---|
protected static int |
connCounter
The connection counter used in HttpTransportAgent#sendMessage()
to take trace of the number of open connections
XXX: DEBUG CODE |
Constructor Summary | |
---|---|
SyncManager(SyncConfig conf)
SyncManager constructor |
Method Summary | |
---|---|
void |
setFlagSendDevInf()
To be invoked by every change of the device configuration and if the serverUrl is a new one (i.e., not already on the list lastServerUrl |
void |
sync(SyncSource source)
Synchronizes synchronization source, using the preferred sync mode defined for that SyncSource. |
void |
sync(SyncSource src,
int syncMode)
Synchronizes synchronization source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int connCounter
HttpTransportAgent#sendMessage()
to take trace of the number of open connections
XXX: DEBUG CODE
Constructor Detail |
---|
public SyncManager(SyncConfig conf)
conf
- is the configuration data filled by the clientMethod Detail |
---|
public void sync(SyncSource source) throws SyncException, AuthenticationException
source
- the SyncSource to synchronize
SyncException
- If an error occurs during synchronization
AuthenticationException
- If the server responded with "non authorized" return codepublic void sync(SyncSource src, int syncMode) throws SyncException, AuthenticationException
source
- the SyncSource to synchronize
SyncException
- If an error occurs during synchronization
AuthenticationException
- If the server responded with "non authorized" return codepublic void setFlagSendDevInf()
lastServerUrl
serverUrl
,
isNewServerUrl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |