public class ForeignObjectManager
extends java.lang.Object
TBD RS dokumentieren.
Modifier and Type | Class and Description |
---|---|
private class |
ForeignObjectManager.RemoteObjectRequest |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ForeignConfigRequester> |
_authorityPid2Requester |
private java.util.HashMap<java.lang.Integer,ConfigurationAuthority> |
_code2foreignConfigurationAuthority |
private DataModel |
_configuration |
private ClientDavInterface |
_connection |
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private java.util.concurrent.ScheduledExecutorService |
_executor |
private ForeignConfigReceiveCommunicator |
_foreignConfigReceiveCommunicator |
private PersistentDynamicObjectCache |
_foreignObjectCache |
private boolean |
_foreignObjectCacheConsistent |
private java.io.File |
_foreignObjectCacheFile |
private java.lang.Object |
_foreignObjectCacheLock |
private java.util.HashMap<java.lang.Long,SystemObject> |
_foreignObjects |
private SystemObject |
_localAuthority |
Constructor and Description |
---|
ForeignObjectManager(ClientDavInterface connection,
DataModel configuration,
SystemObject localAuthority,
java.io.File foreignObjectCacheFile) |
private static final Debug _debug
DebugLogger für Debug-Ausgaben
private final ClientDavInterface _connection
private final DataModel _configuration
private final SystemObject _localAuthority
private final java.util.Map<java.lang.String,ForeignConfigRequester> _authorityPid2Requester
private java.util.concurrent.ScheduledExecutorService _executor
private java.util.HashMap<java.lang.Long,SystemObject> _foreignObjects
private ForeignConfigReceiveCommunicator _foreignConfigReceiveCommunicator
private java.util.HashMap<java.lang.Integer,ConfigurationAuthority> _code2foreignConfigurationAuthority
private final java.io.File _foreignObjectCacheFile
private PersistentDynamicObjectCache _foreignObjectCache
private java.lang.Object _foreignObjectCacheLock
private boolean _foreignObjectCacheConsistent
public ForeignObjectManager(ClientDavInterface connection, DataModel configuration, SystemObject localAuthority, java.io.File foreignObjectCacheFile)
public ForeignConfigRequester getForeignConfigRequester(ConfigurationAuthority authority)
private ForeignConfigRequester getForeignConfigRequester(java.lang.String managementPid)
public ForeignConfigRequester getForeignConfigRequester(MutableCollection mutableCollection)
public java.lang.String getElementsManagementPid(MutableSet mutableSet)
public ForeignMutableCollectionProxy getForeignMutableCollectionProxy(short internalSimVariant, MutableCollection mutableCollection)
public ClientDavInterface getConnection()
public DataModel getConfiguration()
public SystemObject getLocalAuthority()
void start()
java.util.concurrent.ScheduledExecutorService getExecutor()
void memorizeRemoteObject(java.lang.Long key, ForeignDynamicObject remoteObject)
public SystemObject getRemoteObject(java.lang.Long key)
public boolean hasRemoteObject(java.lang.Long key)
public void updateNotValidSince(long objectId, long objectTypeId, long notValidSince)
public void updateName(long objectId, long objectTypeId, java.lang.String newName)
public void requestRemoteObjects(AsyncIdsToObjectsRequest asyncIdsToObjectsRequest)
private ConfigurationAuthority getForeignConfigurationAuthority(long objectId)
public void close() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
java.io.IOException
public SystemObject getCachedForeignObject(long id)
public void cacheForeignObject(DynamicObject remoteDynamicObject)