com.sybase.uep.bobclient.sync
Class SyncApplicationData

java.lang.Object
  extended by com.sybase.uep.bobclient.sync.SyncApplicationData
All Implemented Interfaces:
SyncStatusListener, java.lang.Runnable

public class SyncApplicationData
extends java.lang.Object
implements java.lang.Runnable, SyncStatusListener

This is the Sync Application Data runnable thread This thread will sync the application and update the progress

Author:
tdang

Constructor Summary
SyncApplicationData(SyncAction action, java.lang.String[] mobileAppList, boolean saveParams)
          Constructor to create a SyncApplicationData thread
SyncApplicationData(SyncAction action, java.lang.String[] mobileAppList, java.util.Hashtable parameters, boolean saveParams)
          Constructor to create a SyncApplicationData thread
 
Method Summary
 void cancel()
           
 boolean isCancel()
          Whether the synchronization is cancelled.
 boolean objectSyncStatus(ObjectSyncStatusData data)
          Called when there is information to report about the status of a synchronization that is taking place.
 void run()
          Executing thread
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncApplicationData

public SyncApplicationData(SyncAction action,
                           java.lang.String[] mobileAppList,
                           boolean saveParams)
Constructor to create a SyncApplicationData thread

Parameters:
screen - - SyncProgressScreen screen
mobileAppList - - String array of MBO Mobile Applications names
saveParams - - True to save the sync parameters for later sync

SyncApplicationData

public SyncApplicationData(SyncAction action,
                           java.lang.String[] mobileAppList,
                           java.util.Hashtable parameters,
                           boolean saveParams)
Constructor to create a SyncApplicationData thread

Parameters:
action - - Sync action
mobileAppList - - String array of MBO Mobile Applications names
parameters - - request input parameters to send to server
saveParams - - True to save the sync parameters for later sync
Method Detail

run

public void run()
Executing thread

Specified by:
run in interface java.lang.Runnable

cancel

public void cancel()

isCancel

public boolean isCancel()
Whether the synchronization is cancelled.


objectSyncStatus

public boolean objectSyncStatus(ObjectSyncStatusData data)
Called when there is information to report about the status of a synchronization that is taking place.

Specified by:
objectSyncStatus in interface SyncStatusListener
Parameters:
data - - An ObjectSyncStatusData object that contains information about the status of the running synchronization.
Returns:
Return true to cancel the synchronization or false to continue.