public abstract class ERXRemoteSynchronizer extends Object
| Name | Description |
|---|---|
er.extensions.remoteSynchronizer.enabled | if true, remote synchronization is enabled |
er.extensions.remoteSynchronizer | the class name of the remote synchronizer to use (default to ERXSimpleMulticastSynchronizer) |
er.extensions.remoteSynchronizer.includeEntities | er.extensions.remoteSynchronizer.includeEntities |
er.extensions.remoteSynchronizer.excludeEntities | er.extensions.remoteSynchronizer.excludeEntities |
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXRemoteSynchronizer.RefByteArrayOutputStream |
| Constructor and Description |
|---|
ERXRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.IChangeListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_readCacheChange(ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange,
DataInputStream dis) |
protected com.webobjects.eocontrol.EOGlobalID |
_readGID(com.webobjects.eoaccess.EOEntityClassDescription classDescription,
String entityName,
DataInputStream dis) |
protected void |
_writeCacheChange(DataOutputStream dos,
ERXDatabase.CacheChange cacheChange) |
protected abstract void |
_writeCacheChanges(int transactionID,
NSArray<ERXDatabase.CacheChange> cacheChanges) |
protected void |
addChange(ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange) |
protected NSArray<ERXDatabase.CacheChange> |
filteredCacheChanges(NSArray<ERXDatabase.CacheChange> cacheChanges) |
NSDictionary<String,NSSet<com.webobjects.eocontrol.EOGlobalID>> |
globalIDsGroupedByEntity(NSArray<com.webobjects.eocontrol.EOGlobalID> gids) |
protected boolean |
handleMessageType(int messageType,
ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange,
DataInputStream dis) |
abstract void |
join() |
abstract void |
leave() |
abstract void |
listen() |
static ERXRemoteSynchronizer |
newRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.IChangeListener changeListener) |
protected com.webobjects.eocontrol.EOGlobalID |
readGID(DataInputStream dis) |
protected NSArray<com.webobjects.eocontrol.EOGlobalID> |
readGIDs(DataInputStream dis) |
protected Object |
readKey(DataInputStream dis) |
static boolean |
remoteSynchronizerEnabled() |
boolean |
shouldSynchronizeEntity(String entityName) |
void |
writeCacheChanges(int transactionID,
NSArray<ERXDatabase.CacheChange> cacheChanges) |
protected void |
writeGID(DataOutputStream dos,
com.webobjects.eocontrol.EOGlobalID gid) |
protected void |
writeGIDKeys(DataOutputStream dos,
com.webobjects.eocontrol.EOKeyGlobalID gid) |
protected void |
writeGIDs(DataOutputStream dos,
NSArray<com.webobjects.eocontrol.EOGlobalID> gids) |
protected void |
writeKey(DataOutputStream dos,
Object key) |
protected void |
writeSnapshotCacheChange(DataOutputStream dos,
ERXDatabase.CacheChange cacheChange) |
public ERXRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.IChangeListener listener)
public static boolean remoteSynchronizerEnabled()
public static ERXRemoteSynchronizer newRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.IChangeListener changeListener) throws Throwable
Throwableprotected void _readCacheChange(ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange, DataInputStream dis) throws IOException
IOExceptionprotected boolean handleMessageType(int messageType,
ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange,
DataInputStream dis)
protected void _writeCacheChange(DataOutputStream dos, ERXDatabase.CacheChange cacheChange) throws IOException
IOExceptionprotected void writeSnapshotCacheChange(DataOutputStream dos, ERXDatabase.CacheChange cacheChange) throws IOException
IOExceptionprotected void writeGIDs(DataOutputStream dos, NSArray<com.webobjects.eocontrol.EOGlobalID> gids) throws IOException
IOExceptionprotected void writeGID(DataOutputStream dos, com.webobjects.eocontrol.EOGlobalID gid) throws IOException
IOExceptionprotected void writeGIDKeys(DataOutputStream dos, com.webobjects.eocontrol.EOKeyGlobalID gid) throws IOException
IOExceptionprotected void writeKey(DataOutputStream dos, Object key) throws IOException
IOExceptionprotected NSArray<com.webobjects.eocontrol.EOGlobalID> readGIDs(DataInputStream dis) throws IOException
IOExceptionprotected com.webobjects.eocontrol.EOGlobalID readGID(DataInputStream dis) throws IOException
IOExceptionprotected com.webobjects.eocontrol.EOGlobalID _readGID(com.webobjects.eoaccess.EOEntityClassDescription classDescription,
String entityName,
DataInputStream dis)
throws IOException
IOExceptionprotected Object readKey(DataInputStream dis) throws IOException
IOExceptionpublic boolean shouldSynchronizeEntity(String entityName)
public NSDictionary<String,NSSet<com.webobjects.eocontrol.EOGlobalID>> globalIDsGroupedByEntity(NSArray<com.webobjects.eocontrol.EOGlobalID> gids)
protected void addChange(ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange)
protected NSArray<ERXDatabase.CacheChange> filteredCacheChanges(NSArray<ERXDatabase.CacheChange> cacheChanges)
public void writeCacheChanges(int transactionID,
NSArray<ERXDatabase.CacheChange> cacheChanges)
throws Throwable
Throwableprotected abstract void _writeCacheChanges(int transactionID,
NSArray<ERXDatabase.CacheChange> cacheChanges)
throws Throwable
ThrowableCopyright © 2002 – 2020 Project Wonder.