public interface FlowFileRepository extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
getMaxFlowFileIdentifier() |
long |
getNextFlowFileSequence() |
long |
getStorageCapacity()
Returns the maximum number of bytes that can be stored in the underlying
storage mechanism
|
long |
getUsableStorageSpace()
Returns the number of bytes currently available for use by the underlying
storage mechanism
|
void |
initialize(ContentClaimManager claimManager)
Initializes the Content Repository, providing to it the
ContentClaimManager that is to be used for interacting with Content
Claims
|
boolean |
isVolatile() |
long |
loadFlowFiles(QueueProvider queueProvider,
long minimumSequenceNumber)
Loads all flow files found within the repository, establishes the content
claims and their reference count
|
void |
swapFlowFilesIn(String swapLocation,
List<FlowFileRecord> flowFileRecords,
FlowFileQueue flowFileQueue)
Updates the Repository to indicate that the given FlowFileRecpords were
Swapped In to memory
|
void |
swapFlowFilesOut(List<FlowFileRecord> swappedOut,
FlowFileQueue flowFileQueue,
String swapLocation)
Updates the Repository to indicate that the given FlowFileRecords were
Swapped Out of memory
|
void |
updateRepository(Collection<RepositoryRecord> records)
Updates the repository with the given RepositoryRecords.
|
void initialize(ContentClaimManager claimManager) throws IOException
claimManager
- IOException
long getStorageCapacity() throws IOException
IOException
long getUsableStorageSpace() throws IOException
IOException
void updateRepository(Collection<RepositoryRecord> records) throws IOException
records
- the records to update the repository withIOException
long loadFlowFiles(QueueProvider queueProvider, long minimumSequenceNumber) throws IOException
queueProvider
- the provider of FlowFile Queues into which the
FlowFiles should be enqueuedminimumSequenceNumber
- specifies the minimum value that should be
returned by a call to getNextFlowFileSequence()
IOException
boolean isVolatile()
true
if the Repository is volatile (i.e., its data
is lost upon application restart), false
otherwiselong getNextFlowFileSequence()
FlowFile
s.long getMaxFlowFileIdentifier() throws IOException
FlowFile
s that currently exist in
the repository.IOException
void swapFlowFilesOut(List<FlowFileRecord> swappedOut, FlowFileQueue flowFileQueue, String swapLocation) throws IOException
swappedOut
- the FlowFiles that were swapped out of memoryflowFileQueue
- the queue that the FlowFiles belong toswapLocation
- the location to which the FlowFiles were swappedIOException
void swapFlowFilesIn(String swapLocation, List<FlowFileRecord> flowFileRecords, FlowFileQueue flowFileQueue) throws IOException
swapLocation
- the location (e.g., a filename) from which FlowFiles
were recoveredflowFileRecords
- the records that were swapped inflowFileQueue
- the queue that the FlowFiles belong toIOException
Copyright © 2015 Apache NiFi(incubating) Project. All rights reserved.