| org.netbeans.modules.cnd.repository.api.Repository
All known Subclasses: org.netbeans.modules.cnd.repository.impl.DelegateRepository, org.netbeans.modules.cnd.repository.impl.HybridRepository, org.netbeans.modules.cnd.repository.impl.HashMapRepository, org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager,
Repository | public interface Repository (Code) | | author: Sergey Grinev |
cleanCaches | void cleanCaches()(Code) | | clean the disk caches of all repositories
|
closeUnit | void closeUnit(String unitName, boolean cleanRepository, Set<String> requiredUnits)(Code) | | Close Repository Unit, e.g. Project for IDE
Parameters: unitName - the name of unit |
debugClear | void debugClear()(Code) | | store all objects to permanent location
should be called during IDE shutdown
|
get | Persistent get(Key key)(Code) | | retrieve object
Parameters: key - the key of object to get an object corresponding to key or null if there is no such one |
hang | void hang(Key key, Persistent obj)(Code) | | store object without option to be persistent,
either to register object for later put
or to store temporary inpersistable object
Parameters: key - the key Parameters: obj - the object to store |
openUnit | void openUnit(String unitName)(Code) | | Opens repository unit
Parameters: unitName - the unique identifier of the unit to open |
put | void put(Key key, Persistent obj)(Code) | | store object
Parameters: key - the key Parameters: obj - the object to store |
registerRepositoryListener | void registerRepositoryListener(RepositoryListener aListener)(Code) | | add a listener to the repository
Parameters: aListener - the listener |
remove | void remove(Key key)(Code) | | stop storing object
Parameters: key - the key of object to remove |
removeUnit | void removeUnit(String unitName)(Code) | | Removes repository unit from disk
|
shutdown | void shutdown()(Code) | | Shuts down repository.
Should be called during application shutdown
|
startup | void startup(int persistMechanismVersion)(Code) | | Prepare repositoty and tells the version of the persistent mechanism
Parameters: verison - |
tryGet | Persistent tryGet(Key key)(Code) | | retrieve object if it resides in memory cache;
Parameters: key - the key of object to get an object corresponding to key or null if there is no such object in memory cache |
unregisterRepositoryListener | void unregisterRepositoryListener(RepositoryListener aListener)(Code) | | remove a listener from the repository
Parameters: aListener - the listener |
|
|