Inheritance diagram for org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener:
Synchro listener are managed by the SynchroManager. The sendData method is call for sending synchronisation data and receiveData is call if there is an answer to send data. Synchronisation end when no data is added to the send data container For each listener, the synchronisation protocol manage an unique id that identity the synchronisation session; see OpenMobile Synchronisation Protocol.
Definition at line 46 of file OpenMSPSyncListener.java.
Public Member Functions | |
void | sendData (Message message) throws OpenMSPException |
Event sent when the sync manager sends a openML message to the server The specified message is the message use to construct the synchro message This method fill the message with listener commande container. | |
String | getSyncName () |
Return the name used to identiy the of the listener in the synchro processus. | |
void | notifySynchroFailure () |
The listener is called if the syncML command processing failed. | |
int | getSynchroStatus () |
Return the synchro status of the listener. | |
boolean | isSyncOK () |
return true if the synchronisation is OK for the listener. | |
void | startSync (Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException |
Fire this event once a synchro is starting. | |
void | endSync () throws OpenMSPException |
Fire this event once the current synchro is ended. | |
void | receiveSyncCommand (ContainerMessage syncContainer, long newSyncNumber) throws OpenMSPException |
Event sent when the sync manager receives Sync command openML messages from the server. | |
void | receiveMapCommand (ContainerMessage mapContainer) throws OpenMSPException |
Event sent when the sync manager receives MAP command openML messages from the server. | |
void | receiveResultCommand (ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives RESULT openML messages from the server. | |
void | receiveStatusCommand (Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives STATUS openML messages from the server. | |
Static Public Attributes | |
static final int | SYNCHRO_OK = Status.STATUS_OK |
static final int | SYNCHRO_FAILLED = Status.STATUS_FAILED |
|
Return the synchro status of the listener. The return value is defined by the OpenMSP Status class. Implemented in org.openmobileis.modules.common.log.client.LogsSynchroListener, and org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener. |
|
|
Event sent when the sync manager receives MAP command openML messages from the server.
Implemented in org.openmobileis.modules.common.log.client.LogsSynchroListener, org.openmobileis.synchro.openmsp.client.core.test.TestSynchroListener, org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener, and org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener. Referenced by org.openmobileis.synchro.openmsp.client.core.OpenMSPSyncMessageFactory.receiveOpenMSPMessage(). |
|
Event sent when the sync manager receives RESULT openML messages from the server.
Implemented in org.openmobileis.modules.common.log.client.LogsSynchroListener, org.openmobileis.synchro.openmsp.client.core.test.TestSynchroListener, org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener, and org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener. Referenced by org.openmobileis.synchro.openmsp.client.core.OpenMSPSyncMessageFactory.receiveOpenMSPMessage(). |
|
Event sent when the sync manager receives STATUS openML messages from the server.
Implemented in org.openmobileis.modules.common.log.client.LogsSynchroListener, org.openmobileis.synchro.openmsp.client.core.test.TestSynchroListener, org.openmobileis.synchro.openmsp.client.OpenMSPDBSyncListener, and org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener. Referenced by org.openmobileis.synchro.openmsp.client.core.OpenMSPSyncMessageFactory.receiveOpenMSPMessage(). |
|
Event sent when the sync manager receives Sync command openML messages from the server.
Implemented in org.openmobileis.modules.common.log.client.LogsSynchroListener, and org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener. Referenced by org.openmobileis.synchro.openmsp.client.core.OpenMSPSyncMessageFactory.receiveOpenMSPMessage(). |