| Modifier and Type | Class and Description |
|---|---|
| private class | DiskStorageFactory.DiskExpiryTask
Causes removal of all expired elements (and fires the relevant events). |
| private class | DiskStorageFactory.DiskFreeTask
Disk free tasks are used to asynchronously free DiskMarker instances under the correct exclusive write lock. |
| public static class | DiskStorageFactory.DiskMarker
DiskMarker instances point to the location of their associated serialized Element instance. |
| public abstract static class | DiskStorageFactory.DiskSubstitute
Abstract superclass for all disk substitutes. |
| pack-priv abstract class | DiskStorageFactory.DiskWriteTask
DiskWriteTasks are used to serialize elements to disk and fault in the resultant DiskMarker instance. |
| pack-priv class | DiskStorageFactory.IndexWriteTask
Task that writes the index file for this factory. |
| private class | DiskStorageFactory.OnDiskFilter
Filters for on-disk elements created by this factory |
| private class | DiskStorageFactory.PersistentDiskWriteTask
Disk write task implementation for disk persistent stores. |
| pack-priv class | DiskStorageFactory.Placeholder
Placeholder instances are put in place to prevent duplicate write requests while Elements are being written to disk. |
| Modifier and Type | Field and Description |
|---|---|
| private final FileAllocationTree | |
| private final ClassLoader | |
| private final RandomAccessFile[] | |
| private volatile int | |
| private final boolean | |
| private final BlockingQueue | |
| private final DiskStorePathManager | |
| private final ScheduledThreadPoolExecutor | diskWriter
Executor service used to write elements to disk |
| private volatile int | |
| private final RegisteredEventListeners | |
| private final File | |
| private final DiskStorageFactory. | |
| private final File | |
| private static final Logger | |
| private static final int | |
| private static final int | |
| private final AtomicInteger | |
| private final ElementSubstituteFilter | |
| private volatile boolean | |
| private final long | |
| private static final int | |
| private static final int | SERIALIZATION_CONCURRENCY_DELAY
Path stub used to create unique ehcache directories. |
| private static final int | |
| protected volatile DiskStore | store
The store bound to this factory. |
| Access | Constructor and Description |
|---|---|
| public | DiskStorageFactory(Ehcache
cache that fronts this factory cache, RegisteredEventListeners cacheEventNotificationService)Constructs an disk persistent factory for the given cache and disk path. |
| Modifier and Type | Method and Description |
|---|---|
| private DiskStorageFactory. | |
| private static RandomAccessFile[] | |
| public void | |
| public boolean | Returns: true if the disk write queue is full.Return |
| public DiskStorageFactory. | |
| public boolean | |
| private DiskStorageFactory. | |
| protected void | |
| protected static void | deleteFile(File
the file to delete f)Attempt to delete the corresponding file and log an error on failure. |
| private boolean | |
| pack-priv int | Returns: the number of elements actually evictedthe number of elements to evict count)Evict some elements, if possible |
| public void | |
| public Future | |
| public void | free(Lock
the lock protecting the DiskSubstitute lock, DiskStorageFactory.DiskSubstitute being freed. substituteFree any manually managed resources used by this |
| public void | free(Lock
the lock protecting the DiskSubstitute lock, DiskStorageFactory.DiskSubstitute being freed. substitute,true if this DiskSubstitute should be freed because of a disk failure faultFailure)Free any manually managed resources used by this |
| protected void | free(DiskStorageFactory.
marker to be free'd markerFree the given marker to be used by a subsequent write. |
| private RandomAccessFile | |
| public File | Returns: a reference to the data file backing this factory.Return a reference to the data file backing this factory. |
| pack-priv int | |
| private DiskStorageFactory. | |
| public File | |
| public int | |
| public long | Returns: this size in bytes of this factoryReturn this size in bytes of this factory |
| private boolean | |
| private void | |
| protected void | markUsed(DiskStorageFactory.
on-disk marker to mark as used markerMark this on-disk marker as used (hooks into the file space allocation structure). |
| private void | |
| protected Element | Returns: deserialized Elementmarker to read markerRead the data at the given marker, and return the associated deserialized Element. |
| public Element | Returns: the decoded elementElementSubstitute to decode objectDecodes the supplied |
| public Element | Returns: the decoded elementElementSubstitute to decode object,Decodes the supplied |
| protected < return type of the callable U> Future | |
| private MemoryEfficientByteArrayOutputStream | |
| public void | setOnDiskCapacity(int
the maximum on-disk capacity for this factory. capacity)Set the maximum on-disk capacity for this factory. |
| protected void | |
| protected void | |
| public void | |
| protected DiskStorageFactory. |