oracle.lite.mSync
was
replaced by oracle.opensync.ose
and
oracle.opensync.syncagent
. Instead of Sync
,
OSESession
should be used. This class may be removed from future
release.public class Sync
extends java.lang.Object
Code snippet below:
SyncOption op = new SyncOption(user, passwd, "noNewPubs","HTTP",server.toString()); Sync sc = new Sync(op); try{ op.selectPub(syncPub); // selective sync publication op.save(); sc. doSync(); }catch(SyncException e){ System.out.println(e.getMessage()); System.exit(0); } System.out.println("sync succeeded!");
Constructor and Description |
---|
Sync()
Deprecated.
|
Sync(java.lang.String mu)
Deprecated.
|
Sync(SyncOption opt)
Deprecated.
Initialize a sync object by using the provided sync options
|
Modifier and Type | Method and Description |
---|---|
void |
abort()
Deprecated.
Set the cancel flag in the native sync environment variable ;
abort() will only return after doSync() exits |
SyncProgressListener |
add(SyncProgressListener listener)
Deprecated.
Adds a progress listener to the sync object to monitor
progress during sync
|
void |
addProgressListener(SyncProgressListener p)
Deprecated.
As of DMS 12.1.0.0.0, replaced by
oracle.opensync.ose.OSESession.addProgressListener
(OSEProgressListener) . |
void |
close()
Deprecated.
|
void |
doSync()
Deprecated.
Start the synchronization process;
It throws SyncException if an error occurs in synchronization.
|
void |
saveUserInfo()
Deprecated.
|
void |
setSyncFlag(java.lang.String pub,
java.lang.String tbl,
short flag)
Deprecated.
As of DMS 12.1.0.0.0, selective sync based on table name
is not supported.
Use
oracle.opensync.ose.OSESession.selectPub(String)
instead. This method may be removed in future release. |
void |
setTransport(SyncOpenTransport tr)
Deprecated.
|
void |
sync()
Deprecated.
|
public Sync(SyncOption opt)
public Sync() throws SyncException
SyncException
public Sync(java.lang.String mu) throws SyncException
SyncException
public void close()
public void doSync() throws SyncException
SyncException
public void sync() throws SyncException
SyncException
public void saveUserInfo() throws SyncException
SyncException
public void setSyncFlag(java.lang.String pub, java.lang.String tbl, short flag) throws SyncException
oracle.opensync.ose.OSESession.selectPub(String)
instead. This method may be removed in future release.SyncException
public void addProgressListener(SyncProgressListener p)
oracle.opensync.ose.OSESession.addProgressListener
(OSEProgressListener)
.public SyncProgressListener add(SyncProgressListener listener)
listener
- - An object that implements the ProgressListener interface.
The sync object will call the progress()
function of this object to inform it of the sync.public void abort()
public void setTransport(SyncOpenTransport tr)