public class SyncService
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SyncService() |
Modifier and Type | Method and Description |
---|---|
void |
checkIds() |
static java.lang.Long |
connectToAuthoritativeServer(DBManLocalI _dbm,
BackendConnectionManager _rcl,
java.lang.String _authNodeUrl,
java.lang.String _authNodeUser,
java.lang.String _authNodePass)
Connect to and authenticate with authoritative server.
|
java.lang.String |
dot(boolean last) |
void |
handleLogSync() |
void |
init(DBManLocalI _dbm,
netrexx.lang.Rexx _section) |
void |
injectIntoTx(Transaction tx,
java.lang.Long id,
BOT bot) |
void |
localDBManEvent(DBManEvent e) |
void |
localSave(Transaction txl,
Transaction txr)
Saves transaction that occurred on remote server to local database.
|
void |
logSync(BT bt,
Transaction tx,
BLOBLoaderI blobLoader,
Transaction txForFutureBLOBChangingBPsQuery)
Version 2 der logSync-Methode.
|
void |
logSync(de.ipcon.db.core.QueryResultsI localQR,
de.ipcon.db.core.QueryResultsI remoteQR) |
void |
logSyncLocalToRemote(BT bt,
Transaction txl,
Transaction txr,
boolean last)
Saves transaction that occurred in local database to remote server.
|
void |
logSyncRemoteToLocal(BT bt,
Transaction txl,
Transaction txr,
boolean last)
Saves transaction that occurred on remote server to local database.
|
void |
rememberLocalBT(BT bt) |
void |
rememberRemoteBT(BT bt) |
void |
remoteDBManEvent(DBManEvent e) |
void |
remoteSave(Transaction txl,
Transaction txr)
Saves transaction that occurred in local database to remote server.
|
void |
run() |
boolean |
syncChecker(boolean ignoreCheckInterval) |
void |
synthesizeBOIntoTx(ObjectNotPersistentException onpe,
BOLoaderI loader,
Transaction tx) |
void |
synthesizeBOIntoTx(ObjectsNotPersistentException osnpe,
BOLoaderI loader,
Transaction tx) |
void |
synthesizeBOIntoTx(PersistenceException pe,
BOLoaderI loader,
Transaction tx) |
void |
waitOnEvent(boolean checkForRemoteChanges) |
public void init(DBManLocalI _dbm, netrexx.lang.Rexx _section)
public void run()
run
in interface java.lang.Runnable
public static java.lang.Long connectToAuthoritativeServer(DBManLocalI _dbm, BackendConnectionManager _rcl, java.lang.String _authNodeUrl, java.lang.String _authNodeUser, java.lang.String _authNodePass)
public void waitOnEvent(boolean checkForRemoteChanges)
public void localDBManEvent(DBManEvent e)
public void remoteDBManEvent(DBManEvent e)
public void rememberLocalBT(BT bt)
public void rememberRemoteBT(BT bt)
public void handleLogSync() throws java.lang.Throwable
java.lang.Throwable
public void logSync(de.ipcon.db.core.QueryResultsI localQR, de.ipcon.db.core.QueryResultsI remoteQR) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String dot(boolean last)
public void logSyncRemoteToLocal(BT bt, Transaction txl, Transaction txr, boolean last)
public void localSave(Transaction txl, Transaction txr)
txl
- the transaction that gets savedtxr
- FIXME TT 2019-02-07: not usedpublic void logSyncLocalToRemote(BT bt, Transaction txl, Transaction txr, boolean last)
public void remoteSave(Transaction txl, Transaction txr)
txl
- FIXME TT 2019-02-07: not usedtxr
- the transaction that gets savedpublic void synthesizeBOIntoTx(PersistenceException pe, BOLoaderI loader, Transaction tx)
public void synthesizeBOIntoTx(ObjectNotPersistentException onpe, BOLoaderI loader, Transaction tx)
public void synthesizeBOIntoTx(ObjectsNotPersistentException osnpe, BOLoaderI loader, Transaction tx)
public void logSync(BT bt, Transaction tx, BLOBLoaderI blobLoader, Transaction txForFutureBLOBChangingBPsQuery)
public void injectIntoTx(Transaction tx, java.lang.Long id, BOT bot)
public boolean syncChecker(boolean ignoreCheckInterval)
public void checkIds()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.