Modifier and Type | Method and Description |
---|---|
FileStore |
create()
Create a new
FileStore instance with the settings specified in this
builder. |
FileStore.Builder |
withBlobStore(BlobStore blobStore)
Specify the
BlobStore . |
FileStore.Builder |
withCacheSize(int cacheSize)
Size of the cache in MB.
|
FileStore.Builder |
withGCMonitor(GCMonitor gcMonitor)
GCMonitor for monitoring this files store's gc process. |
FileStore.Builder |
withMaxFileSize(int maxFileSize)
Maximal size of the generated tar files in MB.
|
FileStore.Builder |
withMemoryMapping(boolean memoryMapping)
Turn memory mapping on or off
|
FileStore.Builder |
withNoCache()
Turn caching off
|
FileStore.Builder |
withRoot(NodeState root)
Specify the initial root node state for the file store
|
public FileStore.Builder withBlobStore(BlobStore blobStore)
BlobStore
.blobStore
- public FileStore.Builder withRoot(NodeState root)
root
- public FileStore.Builder withMaxFileSize(int maxFileSize)
maxFileSize
- public FileStore.Builder withCacheSize(int cacheSize)
cacheSize
- public FileStore.Builder withNoCache()
public FileStore.Builder withMemoryMapping(boolean memoryMapping)
memoryMapping
- public FileStore.Builder withGCMonitor(GCMonitor gcMonitor)
GCMonitor
for monitoring this files store's gc process.gcMonitor
- public FileStore create() throws IOException
FileStore
instance with the settings specified in this
builder. If none of the with
methods have been called before calling
this method, a file store with the following default settings is returned:
GCMonitor
trackingIOException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"