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