com.sybase.uep.bobclient.sync
Class SyncPublicationData

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

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

Runnable implementation which represents the publication based synchronization. This thread accepts the package name and publication name from the sync action and process the actual sync publication while scheduled

Author:
tqiu

Constructor Summary
SyncPublicationData(SyncPublicationAction syncPublicationAction, java.util.Hashtable pkgPubList)
          Constructor to create a SyncPublicationData thread
 
Method Summary
 boolean objectSyncStatus(ObjectSyncStatusData data)
          Called when there is information to report about the status of a synchronization that is taking place.
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncPublicationData

public SyncPublicationData(SyncPublicationAction syncPublicationAction,
                           java.util.Hashtable pkgPubList)
Constructor to create a SyncPublicationData thread

Parameters:
syncPublicationAction - - SyncPublicationAction action
pkgPubList - Hashtable object of publications to sync, the keys in the hash table is the package names
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

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 - A ObjectSyncStatusData object that contains information about the status of the running synchronization.
Returns:
Return true to cancel the synchronization or false to continue.