the jar is unzipped from the user.dir root directory and erase all existing file. The jar is stored in the user.dir/temp directory and named APPLICATION_JAR_FILENAME="fullapplication.jar" Some attrinute of the jar manifest can be use to define synchro behaviours :
After the synchronization if a update file is available, an update program is call to do the update. The update program is define with the property org.openmobileis.bundle.update.updateprg and the prg parameter with the property org.openmobileis.bundle.update.updateprgparam If the properties aren't defined the update is not done.
Definition at line 72 of file FullAppUpdateListener.java.
Public Member Functions | |
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 | 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 | 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 | endSync () throws OpenMSPException |
Fire this event once the current synchro is ended. | |
void | receiveStatusCommand (Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives STATUS openML messages from the server. |
String org.openmobileis.bundle.update.terminal.FullAppUpdateListener.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 107 of file FullAppUpdateListener.java.
Referenced by org.openmobileis.bundle.update.terminal.FullAppUpdateListener.sendData().
void org.openmobileis.bundle.update.terminal.FullAppUpdateListener.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 166 of file FullAppUpdateListener.java.
void org.openmobileis.bundle.update.terminal.FullAppUpdateListener.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 173 of file FullAppUpdateListener.java.
References org.openmobileis.synchro.openmsp.protocol.DataItem.getMetaInformation(), and org.openmobileis.bundle.update.terminal.ApplicationUpdateJarUtil.readJarMetainf().
void org.openmobileis.bundle.update.terminal.FullAppUpdateListener.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 231 of file FullAppUpdateListener.java.