|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.modules.common.log.terminal.LogsSynchroListener
Title: OpenMobileIS project source
Description: mail synchro listeners
Field Summary | |
static java.lang.String |
LOG_LISTENER_NAME
|
Fields inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener |
SYNCHRO_FAILLED, SYNCHRO_OK |
Constructor Summary | |
LogsSynchroListener()
|
Method Summary | |
void |
endSync()
Fire this event once the current synchro is ended |
int |
getErrorStatus()
|
int |
getSynchroStatus()
Return the synchro status of the listener. |
java.lang.String |
getSyncName()
Return the name used to identiy the of the listener in the synchro processus. |
void |
initListener()
Call during listener registering. |
boolean |
isSyncOK()
return true if the synchronisation is OK for the listener. |
void |
notifySynchroFailure()
The listener is called if the syncML command processing failed |
void |
receiveGetCommand(Credential cred,
ContainerMessage replaceContainer,
long newSyncNumber)
Call when the server answer container contains a GET command. |
void |
receiveMapCommand(ContainerMessage mapContainer)
Event sent when the sync manager receives MAP command openML messages from the server |
void |
receiveResultCommand(ContainerMessage resultContainer,
ContainerMessage initialCommand)
Event sent when the sync manager receives RESULT openML messages from the server |
void |
receiveStatusCommand(Status statusCommande,
ContainerMessage initialCommand)
Event sent when the sync manager receives STATUS openML messages from the server |
void |
receiveSyncCommand(ContainerMessage syncContainer,
long newSyncNumber)
Event sent when the sync manager receives Sync command openML messages from the server |
void |
sendData(Message message)
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. |
void |
setSynchroStatus(int status)
|
void |
startSync(Credential cred,
SynchroDescriptor synchrodescriptor)
Fire this event once a synchro is starting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOG_LISTENER_NAME
Constructor Detail |
public LogsSynchroListener()
Method Detail |
public void initListener() throws OpenMSPException
OpenMSPSyncListener
initListener
in interface OpenMSPSyncListener
OpenMSPException
public void setSynchroStatus(int status)
public int getSynchroStatus()
OpenMSPSyncListener
getSynchroStatus
in interface OpenMSPSyncListener
Status
public boolean isSyncOK()
OpenMSPSyncListener
isSyncOK
in interface OpenMSPSyncListener
public void notifySynchroFailure()
OpenMSPSyncListener
notifySynchroFailure
in interface OpenMSPSyncListener
public void receiveStatusCommand(Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException
OpenMSPSyncListener
receiveStatusCommand
in interface OpenMSPSyncListener
OpenMSPException
public void sendData(Message message) throws OpenMSPException
OpenMSPSyncListener
sendData
in interface OpenMSPSyncListener
OpenMSPException
public void receiveSyncCommand(ContainerMessage syncContainer, long newSyncNumber) throws OpenMSPException
receiveSyncCommand
in interface OpenMSPSyncListener
OpenMSPException
public void receiveMapCommand(ContainerMessage mapContainer) throws OpenMSPException
receiveMapCommand
in interface OpenMSPSyncListener
OpenMSPException
public void receiveResultCommand(ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException
receiveResultCommand
in interface OpenMSPSyncListener
OpenMSPException
public void receiveGetCommand(Credential cred, ContainerMessage replaceContainer, long newSyncNumber) throws OpenMSPException
OpenMSPSyncListener
receiveGetCommand
in interface OpenMSPSyncListener
OpenMSPException
public java.lang.String getSyncName()
OpenMSPSyncListener
getSyncName
in interface OpenMSPSyncListener
public void startSync(Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException
OpenMSPSyncListener
startSync
in interface OpenMSPSyncListener
OpenMSPException
public void endSync()
OpenMSPSyncListener
endSync
in interface OpenMSPSyncListener
public int getErrorStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |