org.openmobileis.module.terminal
Class ModuleJarSyncListener

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
      extended byorg.openmobileis.module.terminal.ModuleJarSyncListener
All Implemented Interfaces:
OpenMSPSyncListener

public final class ModuleJarSyncListener
extends DefaultOpenMSPSyncListener

Title: OpenMobileIS project source
Description:

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

Field Summary
protected  java.lang.String jarPath
           
protected  ProfileModule module
           
protected  java.lang.String moduleName
           
protected  java.lang.String synchroPath
           
protected  java.lang.String xmlPath
           
 
Fields inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
ADD_ERROR_MESSAGE, DELETE_ERROR_MESSAGE, ITEM_ERROR_MESSAGE, SYNC_ERROR_MESSAGE, SYNC_UNAUTHORIZED_MESSAGE, UPDATE_ERROR_MESSAGE
 
Fields inherited from interface org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener
SYNCHRO_FAILLED, SYNCHRO_OK
 
Constructor Summary
ModuleJarSyncListener()
           
 
Method Summary
 java.lang.String getSyncName()
          Return the name used to identiy the of the listener in the synchro processus.
 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 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 setModule(ProfileModule module)
           
 void startSync(Credential cred, SynchroDescriptor synchrodescriptor)
          Fire this event once a synchro is starting
 
Methods inherited from class org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener
addCredentialToCommand, endSync, equals, getJournalLogRenderer, getSynchroStatus, hashCode, initListener, isSyncOK, notifySynchroFailure, receiveAddCommand, receiveDeleteCommand, receiveGetCommand, receiveReplaceCommand, receiveSyncCommand, receiveSyncItem, setSynchroStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jarPath

protected java.lang.String jarPath

synchroPath

protected java.lang.String synchroPath

moduleName

protected java.lang.String moduleName

module

protected ProfileModule module

xmlPath

protected java.lang.String xmlPath
Constructor Detail

ModuleJarSyncListener

public ModuleJarSyncListener()
Method Detail

setModule

public void setModule(ProfileModule module)

startSync

public void startSync(Credential cred,
                      SynchroDescriptor synchrodescriptor)
               throws OpenMSPException
Description copied from class: DefaultOpenMSPSyncListener
Fire this event once a synchro is starting

Specified by:
startSync in interface OpenMSPSyncListener
Overrides:
startSync in class DefaultOpenMSPSyncListener
Throws:
OpenMSPException

sendData

public void sendData(Message message)
              throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
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.

Throws:
OpenMSPException

getSyncName

public java.lang.String getSyncName()
Description copied from interface: OpenMSPSyncListener
Return the name used to identiy the of the listener in the synchro processus. This name correspond to the source in the OpenMS protocol.


receiveMapCommand

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

Specified by:
receiveMapCommand in interface OpenMSPSyncListener
Overrides:
receiveMapCommand in class DefaultOpenMSPSyncListener
Throws:
OpenMSPException

receiveResultCommand

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

Specified by:
receiveResultCommand in interface OpenMSPSyncListener
Overrides:
receiveResultCommand in class DefaultOpenMSPSyncListener
Throws:
OpenMSPException

receiveStatusCommand

public void receiveStatusCommand(Status statusCommande,
                                 ContainerMessage initialCommand)
                          throws OpenMSPException
Description copied from interface: OpenMSPSyncListener
Event sent when the sync manager receives STATUS openML messages from the server

Throws:
OpenMSPException


Copyright 2006 OpenMobileIS. All Rights Reserved.