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
Throwable
protected void _readCacheChange(ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange, DataInputStream dis) throws IOException
IOException
protected boolean handleMessageType(int messageType, ERXObjectStoreCoordinatorSynchronizer.RemoteChange remoteChange, DataInputStream dis)
protected void _writeCacheChange(DataOutputStream dos, ERXDatabase.CacheChange cacheChange) throws IOException
IOException
protected void writeSnapshotCacheChange(DataOutputStream dos, ERXDatabase.CacheChange cacheChange) throws IOException
IOException
protected void writeGIDs(DataOutputStream dos, NSArray<com.webobjects.eocontrol.EOGlobalID> gids) throws IOException
IOException
protected void writeGID(DataOutputStream dos, com.webobjects.eocontrol.EOGlobalID gid) throws IOException
IOException
protected void writeGIDKeys(DataOutputStream dos, com.webobjects.eocontrol.EOKeyGlobalID gid) throws IOException
IOException
protected void writeKey(DataOutputStream dos, Object key) throws IOException
IOException
protected NSArray<com.webobjects.eocontrol.EOGlobalID> readGIDs(DataInputStream dis) throws IOException
IOException
protected com.webobjects.eocontrol.EOGlobalID readGID(DataInputStream dis) throws IOException
IOException
protected com.webobjects.eocontrol.EOGlobalID _readGID(com.webobjects.eoaccess.EOEntityClassDescription classDescription, String entityName, DataInputStream dis) throws IOException
IOException
protected Object readKey(DataInputStream dis) throws IOException
IOException
public 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
Throwable
protected abstract void _writeCacheChanges(int transactionID, NSArray<ERXDatabase.CacheChange> cacheChanges) throws Throwable
Throwable
Copyright © 2002 – 2020 Project Wonder.