org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener Class Reference

Inheritance diagram for org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener:

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

Detailed Description

Title: OpenMobileIS project source
Description:.

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

Definition at line 54 of file TestOpenMSSyncListener.java.

Public Member Functions

 TestOpenMSSyncListener ()
void startSync (Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException
 Fire this event once a synchro is starting.
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 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.

Protected Member Functions

JournalLogRenderer getJournalLogRenderer ()


Member Function Documentation

String org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener.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 171 of file TestOpenMSSyncListener.java.

Referenced by org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener.sendData().

void org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener.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.

Reimplemented from org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener.

Definition at line 178 of file TestOpenMSSyncListener.java.

void org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener.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.

Reimplemented from org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener.

Definition at line 185 of file TestOpenMSSyncListener.java.

References org.openmobileis.synchro.openmsp.protocol.AbstractCommand.getCmdId(), org.openmobileis.synchro.openmsp.protocol.DataItem.getData(), org.openmobileis.synchro.openmsp.protocol.DataItem.getMetaInformation(), and org.openmobileis.synchro.openmsp.protocol.Result.getMetaInformation().

void org.openmobileis.synchro.openmsp.protocol.test.TestOpenMSSyncListener.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 206 of file TestOpenMSSyncListener.java.


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:42 2006 for OpenMobileIS by  doxygen 1.5.1-p1