org.openmobileis.module.terminal.ModuleJarSyncListener Class Reference

Inheritance diagram for org.openmobileis.module.terminal.ModuleJarSyncListener:

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 59 of file ModuleJarSyncListener.java.


Public Member Functions

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.

Member Function Documentation

String org.openmobileis.module.terminal.ModuleJarSyncListener.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 140 of file ModuleJarSyncListener.java.

Referenced by org.openmobileis.module.terminal.ModuleJarSyncListener.receiveResultCommand(), and org.openmobileis.module.terminal.ModuleJarSyncListener.sendData().

void org.openmobileis.module.terminal.ModuleJarSyncListener.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 147 of file ModuleJarSyncListener.java.

void org.openmobileis.module.terminal.ModuleJarSyncListener.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 154 of file ModuleJarSyncListener.java.

References org.openmobileis.common.util.collection.Array.add(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.synchro.openmsp.protocol.DataItem.getData(), org.openmobileis.synchro.openmsp.protocol.DataItem.getMetaInformation(), org.openmobileis.synchro.openmsp.protocol.Result.getMetaInformation(), org.openmobileis.module.terminal.ModuleJarSyncListener.getSyncName(), org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener.isSyncOK(), and org.openmobileis.common.util.collection.Array.size.

void org.openmobileis.module.terminal.ModuleJarSyncListener.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 226 of file ModuleJarSyncListener.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:21 2010 for OpenMobileIS by  doxygen 1.5.4