| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public void initializeEntryCache(FileSystemEntryCacheCfg configuration) |
| | | throws ConfigException, InitializationException { |
| | | |
| | |
| | | entryCacheEnv.openDatabase(null, INDEXCLASSDBNAME, entryCacheDBConfig); |
| | | // Instantiate the class catalog |
| | | classCatalog = new StoredClassCatalog(entryCacheClassDB); |
| | | //This line causes an unchecked call error if the SuppressWarnings |
| | | //annotation is removed at the beginning of this method. |
| | | entryCacheDataBinding = |
| | | new SerialBinding(classCatalog, |
| | | FileSystemEntryCacheIndex.class); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public void finalizeEntryCache() { |
| | | |
| | | cacheWriteLock.lock(); |
| | |
| | | // Persistent state save report. |
| | | Message message = NOTE_FSCACHE_SAVE.get(); |
| | | logError(message); |
| | | |
| | | //This line causes an unchecked call error if the SuppressWarnings |
| | | //annotation is removed at the beginning of this method. |
| | | entryCacheDataBinding.objectToEntry(entryCacheIndex, indexData); |
| | | DatabaseEntry indexKey = |
| | | new DatabaseEntry(INDEXKEY.getBytes("UTF-8")); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @SuppressWarnings("unchecked") |
| | | public void clear() { |
| | | |
| | | cacheWriteLock.lock(); |
| | |
| | | INDEXCLASSDBNAME, entryCacheDBConfig); |
| | | // Instantiate the class catalog |
| | | classCatalog = new StoredClassCatalog(entryCacheClassDB); |
| | | //This line causes an unchecked call error if the SuppressWarnings |
| | | //annotation is removed at the beginning of this method. |
| | | entryCacheDataBinding = new SerialBinding(classCatalog, |
| | | FileSystemEntryCacheIndex.class); |
| | | } |