Inheritance diagram for org.openmobileis.module.terminal.ModuleJarSyncListener:
Definition at line 59 of file ModuleJarSyncListener.java.
Public Member Functions | |
ModuleJarSyncListener () | |
void | setModule (ProfileModule module) |
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 Attributes | |
String | jarPath |
String | synchroPath |
String | moduleName |
ProfileModule | module |
String | xmlPath |
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 148 of file ModuleJarSyncListener.java.
Referenced by org.openmobileis.module.terminal.ModuleJarSyncListener.ModuleJarSyncListener(), 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.
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 155 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.
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 162 of file ModuleJarSyncListener.java.
References org.openmobileis.common.util.collection.Array.add(), org.openmobileis.common.util.collection.Array.get(), org.openmobileis.synchro.openmsp.protocol.Result.getMetaInformation(), org.openmobileis.module.terminal.ModuleJarSyncListener.getSyncName(), org.openmobileis.synchro.openmsp.client.DefaultOpenMSPSyncListener.isSyncOK(), org.openmobileis.module.terminal.ModuleJarSyncListener.module, 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.
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 214 of file ModuleJarSyncListener.java.