ozone core API

org.ozoneDB.core
Class LocalClientTracker

java.lang.Object
  extended byorg.ozoneDB.core.LocalClientTracker

public class LocalClientTracker
extends java.lang.Object

Tracks local database clients. This is necessary for tracking references from these clients into the database.


Field Summary
protected  java.util.WeakHashMap localClients
          The WeakHashMaps where local clients are keys.
protected static java.lang.Object value
          The value for all entries of localClients
 
Constructor Summary
LocalClientTracker()
           
 
Method Summary
 void addClient(DbLocalClient client)
          Adds a client to this local client tracker.
 void startFilterDatabaseObjectReferencesExports(GarbageCollector garbageCollector)
          Starts filtering references to database objects (OzoneProxys) which are exported to clients at all client connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localClients

protected java.util.WeakHashMap localClients
The WeakHashMaps where local clients are keys. If the local clients are not referenced by any other object, they will vanish here as well soon or later.


value

protected static final java.lang.Object value
The value for all entries of localClients

Constructor Detail

LocalClientTracker

public LocalClientTracker()
Method Detail

addClient

public void addClient(DbLocalClient client)
Adds a client to this local client tracker.


startFilterDatabaseObjectReferencesExports

public void startFilterDatabaseObjectReferencesExports(GarbageCollector garbageCollector)
Starts filtering references to database objects (OzoneProxys) which are exported to clients at all client connections. Every reference which is exported will be notified to the given GarbageCollector. Additionally, references which are known to be used by clients are notified to the given GarbageCollector within this call.


ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.