| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.LockType; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | |
| | | |
| | | |
| | |
| | | public class DefaultEntryCache |
| | | extends EntryCache |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.extensions.DefaultEntryCache"; |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | super(); |
| | | |
| | | assert debugConstructor(CLASS_NAME); |
| | | } |
| | | |
| | | |
| | |
| | | public void initializeEntryCache(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | assert debugEnter(CLASS_NAME, "initializeEntryCache", |
| | | String.valueOf(configEntry)); |
| | | |
| | | // No implementation required. |
| | | } |
| | |
| | | */ |
| | | public void finalizeEntryCache() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "finalizeEntryCache"); |
| | | |
| | | // No implementation required. |
| | | } |
| | |
| | | */ |
| | | public boolean containsEntry(DN entryDN) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "containsEntry", String.valueOf(entryDN)); |
| | | |
| | | // This implementation does not store any entries. |
| | | return false; |
| | |
| | | */ |
| | | public Entry getEntry(DN entryDN) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntry", String.valueOf(entryDN)); |
| | | |
| | | // This implementation does not store any entries. |
| | | return null; |
| | |
| | | */ |
| | | public long getEntryID(DN entryDN) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntryID", String.valueOf(entryDN)); |
| | | |
| | | // This implementation does not store any entries. |
| | | return -1; |
| | |
| | | */ |
| | | public Entry getEntry(DN entryDN, LockType lockType, List<Lock> lockList) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntry", String.valueOf(entryDN), |
| | | String.valueOf(lockType), "java.util.List<Lock>"); |
| | | |
| | | // This implementation does not store entries. |
| | | return null; |
| | |
| | | public Entry getEntry(Backend backend, long entryID, LockType lockType, |
| | | List<Lock> lockList) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntry", String.valueOf(backend), |
| | | String.valueOf(entryID), String.valueOf(lockType), |
| | | "java.util.List<Lock>"); |
| | | |
| | | // This implementation does not store entries. |
| | | return null; |
| | |
| | | */ |
| | | public void putEntry(Entry entry, Backend backend, long entryID) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "putEntry", String.valueOf(entry), |
| | | String.valueOf(backend), String.valueOf(entryID)); |
| | | |
| | | // This implementation does not store entries. |
| | | } |
| | |
| | | */ |
| | | public boolean putEntryIfAbsent(Entry entry, Backend backend, long entryID) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "putEntryIfAbsent", String.valueOf(entry), |
| | | String.valueOf(backend), String.valueOf(entryID)); |
| | | |
| | | // This implementation does not store entries, so we will never have a |
| | | // conflict. |
| | |
| | | */ |
| | | public void removeEntry(DN entryDN) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "removeEntry", String.valueOf(entryDN)); |
| | | |
| | | // This implementation does not store entries. |
| | | } |
| | |
| | | */ |
| | | public void clear() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "clear"); |
| | | |
| | | // This implementation does not store entries. |
| | | } |
| | |
| | | */ |
| | | public void clearBackend(Backend backend) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "clearBackend", String.valueOf(backend)); |
| | | |
| | | // This implementation does not store entries. |
| | | } |
| | |
| | | */ |
| | | public void clearSubtree(DN baseDN) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "clearSubtree", String.valueOf(baseDN)); |
| | | |
| | | // This implementation does not store entries. |
| | | } |
| | |
| | | */ |
| | | public void handleLowMemory() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "handleLowMemory"); |
| | | |
| | | // This implementation does not store entries, so there are no resources |
| | | // that it can free. |