org.openmobileis.modules.common.log.client
Class LogsSynchroListener

java.lang.Object
  extended byorg.openmobileis.modules.common.log.client.LogsSynchroListener

public class LogsSynchroListener
extends java.lang.Object

Title: OpenMobileIS project source
Description: mail synchro listeners

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
static java.lang.String LOG_LISTENER_NAME
           
 
Constructor Summary
LogsSynchroListener()
           
 
Method Summary
 void endSync()
           
 int getErrorStatus()
           
 int getSynchroStatus()
           
 java.lang.String getSyncName()
           
 boolean isSyncOK()
           
 void notifySynchroFailure()
           
 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)
           
 void receiveSyncCommand(ContainerMessage syncContainer, long newSyncNumber)
          Event sent when the sync manager receives Sync command openML messages from the server
 void sendData(Message message)
           
 void setSynchroStatus(int status)
           
 void startSync(Credential cred, SynchroDescriptor synchrodescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_LISTENER_NAME

public static final java.lang.String LOG_LISTENER_NAME
See Also:
Constant Field Values
Constructor Detail

LogsSynchroListener

public LogsSynchroListener()
Method Detail

setSynchroStatus

public void setSynchroStatus(int status)

getSynchroStatus

public int getSynchroStatus()

isSyncOK

public boolean isSyncOK()

notifySynchroFailure

public void notifySynchroFailure()

receiveStatusCommand

public void receiveStatusCommand(Status statusCommande,
                                 ContainerMessage initialCommand)
                          throws OpenMSPException
Throws:
OpenMSPException

sendData

public void sendData(Message message)
              throws OpenMSPException
Throws:
OpenMSPException

receiveSyncCommand

public void receiveSyncCommand(ContainerMessage syncContainer,
                               long newSyncNumber)
                        throws OpenMSPException
Event sent when the sync manager receives Sync command openML messages from the server

Throws:
OpenMSPException

receiveMapCommand

public void receiveMapCommand(ContainerMessage mapContainer)
                       throws OpenMSPException
Event sent when the sync manager receives MAP command openML messages from the server

Throws:
OpenMSPException

receiveResultCommand

public void receiveResultCommand(ContainerMessage resultContainer,
                                 ContainerMessage initialCommand)
                          throws OpenMSPException
Event sent when the sync manager receives RESULT openML messages from the server

Throws:
OpenMSPException

getSyncName

public java.lang.String getSyncName()

startSync

public void startSync(Credential cred,
                      SynchroDescriptor synchrodescriptor)
               throws OpenMSPException
Throws:
OpenMSPException

endSync

public void endSync()

getErrorStatus

public int getErrorStatus()
Returns:


Copyright 2005 e-Care. All Rights Reserved.