Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

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

Inheritance diagram for org.openmobileis.modules.common.log.client.LogsSynchroListener:

org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: mail synchro listeners.

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

Definition at line 62 of file LogsSynchroListener.java.

Public Member Functions

 LogsSynchroListener ()
void setSynchroStatus (int status)
int getSynchroStatus ()
 Return the synchro status of the listener.
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 receiveStatusCommand (Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException
 Event sent when the sync manager receives STATUS openML messages from the server.
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.
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.
String getSyncName ()
 Return the name used to identiy the of the listener in the synchro processus.
void startSync (Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException
 Fire this event once a synchro is starting.
void endSync ()
 Fire this event once the current synchro is ended.
int getErrorStatus ()

Static Public Attributes

static final String LOG_LISTENER_NAME = "FWKLogSynchroListener"


Member Function Documentation

int org.openmobileis.modules.common.log.client.LogsSynchroListener.getErrorStatus  ) 
 

Returns:

Definition at line 219 of file LogsSynchroListener.java.

int org.openmobileis.modules.common.log.client.LogsSynchroListener.getSynchroStatus  ) 
 

Return the synchro status of the listener.

The return value is defined by the OpenMSP Status class.

See also:
org.openmobileis.synchro.openmsp.protocol.Status

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 88 of file LogsSynchroListener.java.

String org.openmobileis.modules.common.log.client.LogsSynchroListener.getSyncName  ) 
 

Return the name used to identiy the of the listener in the synchro processus.

This name correspond to the source in the OpenMS protocol.

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 185 of file LogsSynchroListener.java.

Referenced by org.openmobileis.modules.common.log.client.LogsSynchroListener.endSync(), org.openmobileis.modules.common.log.client.LogsSynchroListener.LogsSynchroListener(), org.openmobileis.modules.common.log.client.LogsSynchroListener.receiveStatusCommand(), and org.openmobileis.modules.common.log.client.LogsSynchroListener.startSync().

void org.openmobileis.modules.common.log.client.LogsSynchroListener.receiveMapCommand ContainerMessage  mapContainer  )  throws OpenMSPException
 

Event sent when the sync manager receives MAP command openML messages from the server.

Parameters:
ContainerMessage container : container containing the message
long newSessionID : the session id use for this synchro for this listener message.

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 165 of file LogsSynchroListener.java.

void org.openmobileis.modules.common.log.client.LogsSynchroListener.receiveResultCommand ContainerMessage  resultContainer,
ContainerMessage  initialCommand
throws OpenMSPException
 

Event sent when the sync manager receives RESULT openML messages from the server.

Parameters:
Result resultCommande : resultCommande containing the result of a command
long newSessionID : the session id use for this synchro for this listener message.
ContainerMessage : command sent that generate the status.

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 175 of file LogsSynchroListener.java.

void org.openmobileis.modules.common.log.client.LogsSynchroListener.receiveStatusCommand Status  statusCommande,
ContainerMessage  initialCommand
throws OpenMSPException
 

Event sent when the sync manager receives STATUS openML messages from the server.

Parameters:
Status statusCommande : resultCommande containing the Status of a command
long newSessionID : the session id use for this synchro for this listener message.
ContainerMessage : command sent that generate the status.

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 101 of file LogsSynchroListener.java.

References org.openmobileis.modules.common.log.client.LogsSynchroListener.getSyncName().

void org.openmobileis.modules.common.log.client.LogsSynchroListener.receiveSyncCommand ContainerMessage  syncContainer,
long  newSyncNumber
throws OpenMSPException
 

Event sent when the sync manager receives Sync command openML messages from the server.

Parameters:
ContainerMessage container : container containing the message
long newSessionID : the session id use for this synchro for this listener message.

Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.

Definition at line 156 of file LogsSynchroListener.java.


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:39 2005 for OpenMobileIS by  doxygen 1.4.4